Commit 6bc91feb authored by Damien Fouilleul's avatar Damien Fouilleul

- live555: toggle TCP use when we receive a '461 Unsupported Transport' during SETUP request

parent ab9ec249
......@@ -601,12 +601,18 @@ static int SessionsSetup( demux_t *p_demux )
{
if( !( p_sys->rtsp->setupMediaSubsession( *sub, False,
b_rtsp_tcp ? True : False ) ) )
{
/* if we get an unsupported transport error, toggle TCP use and try again */
if( !strstr(p_sys->env->getResultMsg(), "461 Unsupported Transport")
|| !( p_sys->rtsp->setupMediaSubsession( *sub, False,
b_rtsp_tcp ? False : True ) ) )
{
msg_Err( p_demux, "SETUP of'%s/%s' failed %s", sub->mediumName(),
sub->codecName(), p_sys->env->getResultMsg() );
continue;
}
}
}
/* Check if we will receive data from this subsession for this track */
if( sub->readSource() == NULL ) continue;
......
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