X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fservices_discovery%2Fupnp_cc.cpp;h=91bec309b29de85bf476278a1a47c17014987484;hb=5adb0bd244776519e2f8f8d64b07ad6bdd195a10;hp=ac9a77c0929fd9e9f8d2a7651c36d5d009c7724e;hpb=df61d33b06e2b3cbbe746b2f5a9bea5b370c24ff;p=vlc diff --git a/modules/services_discovery/upnp_cc.cpp b/modules/services_discovery/upnp_cc.cpp index ac9a77c092..91bec309b2 100644 --- a/modules/services_discovery/upnp_cc.cpp +++ b/modules/services_discovery/upnp_cc.cpp @@ -6,7 +6,7 @@ * * Authors: Rémi Denis-Courmont * - * Based on original wxWindows patch for VLC, and dependant on CyberLink + * Based on original wxWindows patch for VLC, and dependent on CyberLink * UPnP library from : * Satoshi Konno * @@ -36,7 +36,8 @@ # include "config.h" #endif -#include +#include +#include #include /* FIXME: thread-safety ?? */ @@ -58,7 +59,7 @@ using namespace CyberLink; vlc_module_begin(); set_shortname( "UPnP"); - set_description( _("Universal Plug'n'Play discovery") ); + set_description( N_("Universal Plug'n'Play discovery") ); set_category( CAT_PLAYLIST ); set_subcategory( SUBCAT_PLAYLIST_SD ); @@ -155,7 +156,7 @@ static void Run( services_discovery_t *p_sd ) msg_Dbg( p_sd, "UPnP discovery started" ); /* read SAP packets */ - while( !p_sd->b_die ) + while( vlc_object_alive (p_sd) ) { msleep( 500 ); } @@ -221,6 +222,7 @@ void UPnPHandler::AddContent( playlist_item_t *p_parent, ContentNode *node ) playlist_BothAddInput( p_playlist, p_input, p_parent, PLAYLIST_APPEND, PLAYLIST_END, NULL, NULL, false ); + vlc_gc_decref( p_input ); } else if ( node->isContainerNode() ) { ContainerNode *conNode = (ContainerNode *)node;