]> git.sesse.net Git - vlc/commitdiff
vod: fix spurious error message
authorPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 02:00:14 +0000 (04:00 +0200)
committerPierre Ynard <linkfanel@yahoo.fr>
Tue, 4 Oct 2011 02:00:14 +0000 (04:00 +0200)
modules/stream_out/vod.c

index 6b6ea15d466211f30c14c334d011f029d6102fa6..08f3ef929e7d5744f2d54a95587bd6f40c139ebe 100644 (file)
@@ -272,7 +272,7 @@ static void MediaSetup( vod_t *p_vod, vod_media_t *p_media,
     vlc_UrlParse( &url, psz_url, 0 );
     free( psz_url );
 
-    if( url.psz_host != NULL )
+    if( url.psz_host != NULL && *url.psz_host )
     {
         msg_Err( p_vod, "\"%s\" RTSP host ignored", url.psz_host );
         msg_Info( p_vod, "Pass --rtsp-host=%s on the command line "