]> 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 6fb111b6144ddc474a251581ea1434ce78cf8542..5819b4e56a0175f9dd828b8cedc4982ce4b1ea50 100644 (file)
@@ -29,7 +29,7 @@
 # include "config.h"
 #endif
 
-#include <vlc/vlc.h>
+#include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_playlist.h>
 #include <vlc_network.h>
@@ -155,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 )