]> git.sesse.net Git - vlc/commitdiff
modules/services_discovery/podcast.c: Fix initial number of url.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 18 Aug 2007 03:52:09 +0000 (03:52 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 18 Aug 2007 03:52:09 +0000 (03:52 +0000)
modules/services_discovery/podcast.c

index 7098e419baa6ec6f45a899ee8420a107f6843709..3192a69c33fac7bb6459f0807e0481c92310c987 100644 (file)
@@ -148,7 +148,7 @@ static void Run( services_discovery_t *p_sd )
     char *psz_tmp = psz_buf = var_CreateGetString( p_sd, "podcast-urls" );
 
     i = 0;
-    p_sys->i_urls = 1;
+    p_sys->i_urls = psz_buf[0] ? 1 : 0;
     while( psz_buf[i] != 0 )
         if( psz_buf[i++] == '|' )
             p_sys->i_urls++;