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
......@@ -602,9 +602,15 @@ static int SessionsSetup( demux_t *p_demux )
if( !( p_sys->rtsp->setupMediaSubsession( *sub, False,
b_rtsp_tcp ? True : False ) ) )
{
msg_Err( p_demux, "SETUP of'%s/%s' failed %s", sub->mediumName(),
sub->codecName(), p_sys->env->getResultMsg() );
continue;
/* 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;
}
}
}
......
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