[vlc-commits] vod: fix spurious error message

Pierre Ynard git at videolan.org
Tue Oct 4 04:20:03 CEST 2011


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Oct  4 04:00:14 2011 +0200| [ab41e416ee2d56097301f7c09f6bde3b0848ae53] | committer: Pierre Ynard

vod: fix spurious error message

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ab41e416ee2d56097301f7c09f6bde3b0848ae53
---

 modules/stream_out/vod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/vod.c b/modules/stream_out/vod.c
index 6b6ea15..08f3ef9 100644
--- a/modules/stream_out/vod.c
+++ b/modules/stream_out/vod.c
@@ -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 "



More information about the vlc-commits mailing list