Commit 696f8780 authored by François Cartegnie's avatar François Cartegnie 🤞

access: rtsp: set port range before session init (fix #19485)

otherwise gets ignored

(cherry picked from commit 573d7fd6)
parent f05ab95d
......@@ -781,6 +781,12 @@ static int SessionsSetup( demux_t *p_demux )
continue;
}
if( p_sys->rtsp && i_client_port != -1 )
{
sub->setClientPortNum( i_client_port );
i_client_port += 2;
}
if( !strcmp( sub->codecName(), "X-ASF-PF" ) )
bInit = sub->initiate( 0 );
else
......@@ -811,13 +817,6 @@ static int SessionsSetup( demux_t *p_demux )
/* Issue the SETUP */
if( p_sys->rtsp )
{
if( i_client_port != -1 )
{
sub->setClientPortNum( i_client_port );
i_client_port += 2;
}
p_sys->rtsp->sendSetupCommand( *sub, default_live555_callback, False,
toBool( b_rtsp_tcp ),
toBool( p_sys->b_force_mcast && !b_rtsp_tcp ) );
......
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