Commit 4dbeeda8 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Fix RTSP client receiving on standard RTSP port 554.

parent ee482262
...@@ -470,10 +470,11 @@ static int Connect( demux_t *p_demux ) ...@@ -470,10 +470,11 @@ static int Connect( demux_t *p_demux )
psz_url = (char*)malloc( strlen( p_sys->psz_path ) + 8 ); psz_url = (char*)malloc( strlen( p_sys->psz_path ) + 8 );
if( !psz_url ) return VLC_ENOMEM; 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 ) if( p_sys->url.psz_username || p_sys->url.psz_password )
{ {
sprintf( psz_url, "rtsp://%s%s", p_sys->url.psz_host, sprintf( psz_url, "rtsp://%s:%d%s", p_sys->url.psz_host,
p_sys->url.psz_path ); p_sys->url.i_port, p_sys->url.psz_path );
psz_user = strdup( p_sys->url.psz_username ); psz_user = strdup( p_sys->url.psz_username );
psz_pwd = strdup( p_sys->url.psz_password ); psz_pwd = strdup( p_sys->url.psz_password );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment