X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fservices_discovery%2Fpodcast.c;h=5819b4e56a0175f9dd828b8cedc4982ce4b1ea50;hb=9589813471d0f5525789b7cf7165e48d177cbad6;hp=c3d7e636ae8ea81a198ef8a9bcdebf12ccff20a9;hpb=449fd28aaf007c6411251dae9d0dbfdc65b135d1;p=vlc diff --git a/modules/services_discovery/podcast.c b/modules/services_discovery/podcast.c index c3d7e636ae..5819b4e56a 100644 --- a/modules/services_discovery/podcast.c +++ b/modules/services_discovery/podcast.c @@ -29,7 +29,8 @@ # include "config.h" #endif -#include +#include +#include #include #include @@ -60,7 +61,7 @@ static void Close( vlc_object_t * ); vlc_module_begin(); set_shortname( "Podcast"); - set_description( _("Podcasts") ); + set_description( N_("Podcasts") ); set_category( CAT_PLAYLIST ); set_subcategory( SUBCAT_PLAYLIST_SD ); @@ -154,11 +155,12 @@ static void Run( services_discovery_t *p_sd ) { services_discovery_sys_t *p_sys = p_sd->p_sys; + /* Launch the callback associated with this variable */ char *psz_urls = var_CreateGetString( p_sd, "podcast-urls" ); - free( psz_urls ); /* Gruik ? */ + free( psz_urls ); var_AddCallback( p_sd, "podcast-urls", UrlsChange, p_sys ); - while( !p_sd->b_die ) + while( vlc_object_alive (p_sd) ) { int i; if( p_sys->b_update == true )