]> git.sesse.net Git - vlc/blobdiff - modules/services_discovery/podcast.c
Switch the few var_GetString remains to var_GetNonEmptyString
[vlc] / modules / services_discovery / podcast.c
index 9b77260f750daf2df19f5b073c2f1f7ce48202a3..20c1bceb4bb91f3f65812d76e6130c9d8f338bc3 100644 (file)
@@ -158,8 +158,9 @@ static void Run( services_discovery_t *p_sd )
         if( p_sys->b_update == VLC_TRUE )
         {
             msg_Dbg( p_sd, "Update required" );
-            psz_urls = var_GetString( p_sd, "podcast-urls" );
-            ParseUrls( p_sd, psz_urls );
+            psz_urls = var_GetNonEmptyString( p_sd, "podcast-urls" );
+            if( psz_urls != NULL )
+                ParseUrls( p_sd, psz_urls );
             free( psz_urls );
             p_sys->b_update = VLC_FALSE;
         }