X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fservices_discovery%2Fupnp_intel.cpp;h=8d43bcf4b00e37393c323651e5da7390b2caad82;hb=4c9b6e28d2fcc5b0bcc759adb83e30bb23de7fdb;hp=2d194182bb3f62ce83c5424ee65453c5b1159322;hpb=0900f11014557ea895a290d2c1518d739f97a8b6;p=vlc diff --git a/modules/services_discovery/upnp_intel.cpp b/modules/services_discovery/upnp_intel.cpp index 2d194182bb..8d43bcf4b0 100644 --- a/modules/services_discovery/upnp_intel.cpp +++ b/modules/services_discovery/upnp_intel.cpp @@ -27,9 +27,9 @@ /* \TODO: Debug messages: "__FILE__, __LINE__" ok ???, Wrn/Err ??? \TODO: Change names to VLC standard ??? + \TODO: Rewrite this using the new service discovery API (see sap.c, shout.c). */ -#include #include #include @@ -39,8 +39,7 @@ #undef PACKAGE_NAME #include -#include - +#include #include "vlc_strings.h" @@ -467,11 +466,11 @@ static int Callback( Upnp_EventType eventType, void* event, void* pCookie ) case UPNP_EVENT_SUBSCRIBE_COMPLETE: msg_Warn( cookie->serviceDiscovery, "subscription complete" ); break; - + case UPNP_DISCOVERY_SEARCH_TIMEOUT: msg_Warn( cookie->serviceDiscovery, "search timeout" ); break; - + default: msg_Dbg( cookie->serviceDiscovery, "%s:%d: DEBUG: UNHANDLED EVENT ( TYPE=%d )", __FILE__, __LINE__, eventType ); break; @@ -855,7 +854,7 @@ void MediaServer::_buildPlaylist( Container* parent ) playlist_item_t* parentNode = parent->getPlaylistNode(); char* title = strdup( container->getTitle() ); - playlist_item_t* node = playlist_NodeCreate( p_playlist, title, parentNode ); + playlist_item_t* node = playlist_NodeCreate( p_playlist, title, parentNode, 0, NULL ); free( title ); container->setPlaylistNode( node ); @@ -872,7 +871,8 @@ void MediaServer::_buildPlaylist( Container* parent ) item->getTitle() ); int i_cat; playlist_BothAddInput( p_playlist, p_input, parentNode, - PLAYLIST_APPEND, PLAYLIST_END, &i_cat, NULL ); + PLAYLIST_APPEND, PLAYLIST_END, &i_cat, NULL, + VLC_FALSE ); /* TODO: do this better by storing ids */ playlist_item_t *p_node = playlist_ItemGetById( p_playlist, i_cat, VLC_FALSE ); assert( p_node ); @@ -917,7 +917,7 @@ bool MediaServerList::addServer( MediaServer* s ) char* name = strdup( s->getFriendlyName() ); playlist_item_t* node = playlist_NodeCreate( pl_Get( _cookie->serviceDiscovery ), name, - _cookie->serviceDiscovery->p_sys->p_node_cat ); + _cookie->serviceDiscovery->p_sys->p_node_cat, 0, NULL ); free( name ); s->setPlaylistNode( node );