]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/podcast.c
Usefull coment instead of "Gruik" (evenif I like the previous one...)
[vlc] / modules / services_discovery / podcast.c
index c3d7e636ae8ea81a198ef8a9bcdebf12ccff20a9..5819b4e56a0175f9dd828b8cedc4982ce4b1ea50 100644 (file)
@@ -29,7 +29,8 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
+#include <vlc_plugin.h>
 #include <vlc_playlist.h>
 #include <vlc_network.h>
 
@@ -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 )