[vlc-commits] rtp out: 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:10:42 2011 +0200| [08bf5877b9e21e090b52d8c4270ce5fc332ce540] | committer: Pierre Ynard

rtp out: fix spurious error message

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

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

diff --git a/modules/stream_out/rtp.c b/modules/stream_out/rtp.c
index 49241c5..08ad3ea 100644
--- a/modules/stream_out/rtp.c
+++ b/modules/stream_out/rtp.c
@@ -717,7 +717,7 @@ static void SDPHandleUrl( sout_stream_t *p_stream, const char *psz_url )
             goto out;
         }
 
-        if( url.psz_host != NULL )
+        if( url.psz_host != NULL && *url.psz_host )
         {
             msg_Err( p_stream, "\"%s\" RTSP host ignored", url.psz_host );
             msg_Info( p_stream, "Pass --rtsp-host=%s on the command line "



More information about the vlc-commits mailing list