Commit 88c0950b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Cosmetics

parent 8a67cac4
...@@ -544,7 +544,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -544,7 +544,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
if( strncmp( opt, "unicast", 7 ) == 0 ) if( strncmp( opt, "unicast", 7 ) == 0 )
b_multicast = VLC_FALSE; b_multicast = VLC_FALSE;
else else
if( sscanf( opt, "client_port=%u-%u", &loport, &hiport ) == 2 ) if( sscanf( opt, "client_port=%u-%u", &loport, &hiport )
== 2 )
; ;
else else
if( strncmp( opt, "mode=", 5 ) == 0 ) if( strncmp( opt, "mode=", 5 ) == 0 )
...@@ -614,7 +615,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -614,7 +615,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
} }
snprintf( url, sizeof( url ), snprintf( url, sizeof( url ),
( strchr( ip, ':' ) != NULL ) ? "[%s]:%d" : "%s:%d", ( strchr( ip, ':' ) != NULL )
? "[%s]:%d" : "%s:%d",
ip, loport ); ip, loport );
track.access = sout_AccessOutNew( p_stream->p_sout, track.access = sout_AccessOutNew( p_stream->p_sout,
...@@ -628,7 +630,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -628,7 +630,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
continue; continue;
} }
char *src = var_GetNonEmptyString( track.access, "src-addr" ); char *src = var_GetNonEmptyString( track.access,
"src-addr" );
int sport = var_GetInteger( track.access, "src-port" ); int sport = var_GetInteger( track.access, "src-port" );
vlc_mutex_lock( &rtsp->lock ); vlc_mutex_lock( &rtsp->lock );
...@@ -668,7 +671,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args, ...@@ -668,7 +671,8 @@ static int RtspCallbackId( httpd_callback_sys_t *p_args,
"RTP/AVP/UDP;unicast;source=%s;" "RTP/AVP/UDP;unicast;source=%s;"
"client_port=%u-%u;server_port=%u-%u;" "client_port=%u-%u;server_port=%u-%u;"
"mode=play", "mode=play",
src, loport, loport + 1, sport, sport + 1 ); src, loport, loport + 1, sport,
sport + 1 );
} }
else else
{ {
......
Supports Markdown
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