]> git.sesse.net Git - vlc/commitdiff
Fix RTSP client receiving on standard RTSP port 554.
authorJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 17 Apr 2008 12:35:12 +0000 (14:35 +0200)
committerJean-Paul Saman <jean-paul.saman@m2x.nl>
Thu, 17 Apr 2008 12:35:52 +0000 (14:35 +0200)
modules/demux/live555.cpp

index 1842f56708dbbf3b183b92bd8d576c8c2b8cc98f..e2f1a69696c42598723e509215f4819fb264fec0 100644 (file)
@@ -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 );