[vlc-commits] VoD: inform about RTSP destination syntax change

Rémi Denis-Courmont git at videolan.org
Wed Sep 28 21:43:43 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Sep 28 22:40:12 2011 +0300| [2a07683056b2597d2ff70bd338b52a0594293722] | committer: Rémi Denis-Courmont

VoD: inform about RTSP destination syntax change

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

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

diff --git a/modules/stream_out/vod.c b/modules/stream_out/vod.c
index e0b81ea..89331c5 100644
--- a/modules/stream_out/vod.c
+++ b/modules/stream_out/vod.c
@@ -272,6 +272,18 @@ 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 )
+    {
+        msg_Err( p_stream, "\"%s\" RTSP host ignored", url.psz_host );
+        msg_Info( p_stream, "Pass --rtsp-host=%s on the command line "
+                  "instead.", url.psz_host );
+    }
+    if( url.i_port != 0 )
+    {
+        msg_Err( p_stream, "\"%u\" RTSP port ignored", url.i_port );
+        msg_Info( p_stream, "Pass --rtsp-port=%u on the command line "
+                  "instead.", url.i_port );
+    }
     p_media->rtsp = RtspSetup(VLC_OBJECT(p_vod), p_media, url.psz_path);
 
     vlc_UrlClean( &url );



More information about the vlc-commits mailing list