Beispiel #1
0
////////////////////////////////////////
//stop the client
////////////////////////////////////////
int
TvCtrlPointStop( void )
{
    TvCtrlPointRemoveAll(  );
    UpnpUnRegisterClient( ctrlpt_handle );
    UpnpFinish(  );
    SampleUtil_Finish(  );
    return TV_SUCCESS;
}
Beispiel #2
0
/*
 * Releases resources.
 */
static void Close( vlc_object_t *p_this )
{
    services_discovery_t *p_sd = ( services_discovery_t* )p_this;

    UpnpUnRegisterClient( p_sd->p_sys->client_handle );
    UpnpFinish();

    delete p_sd->p_sys->p_server_list;
    vlc_mutex_destroy( &p_sd->p_sys->callback_lock );

    free( p_sd->p_sys );
}
Beispiel #3
0
UpnpInstanceWrapper::~UpnpInstanceWrapper()
{
    UpnpUnRegisterClient( m_handle );
    UpnpFinish();
}
Beispiel #4
0
// GC method for client object
int L_DestroyClient(lua_State *L)
{
	pLuaClient client = (pLuaClient)lua_touserdata(L, 1);
	if (UPnPStarted)	UpnpUnRegisterClient(client->client);
	return 0;
}