[vlc-devel] commit: Fix RTSP client receiving on standard RTSP port 554. ( Jean-Paul Saman )
git version control
git at videolan.org
Thu Apr 17 14:35:07 CEST 2008
vlc | branch: master | Jean-Paul Saman <jean-paul.saman at m2x.nl> | Thu Apr 17 14:35:12 2008 +0200| [4dbeeda8ade44481672b264d4f1c89444cbf8efb]
Fix RTSP client receiving on standard RTSP port 554.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4dbeeda8ade44481672b264d4f1c89444cbf8efb
---
modules/demux/live555.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 1842f56..e2f1a69 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -470,10 +470,11 @@ static int Connect( demux_t *p_demux )
psz_url = (char*)malloc( strlen( p_sys->psz_path ) + 8 );
if( !psz_url ) return VLC_ENOMEM;
+ if( p_sys->url.i_port == 0 ) p_sys->url.i_port = 554;
if( p_sys->url.psz_username || p_sys->url.psz_password )
{
- sprintf( psz_url, "rtsp://%s%s", p_sys->url.psz_host,
- p_sys->url.psz_path );
+ sprintf( psz_url, "rtsp://%s:%d%s", p_sys->url.psz_host,
+ p_sys->url.i_port, p_sys->url.psz_path );
psz_user = strdup( p_sys->url.psz_username );
psz_pwd = strdup( p_sys->url.psz_password );
More information about the vlc-devel
mailing list