Commit d553df56 authored by Sébastien Escudier's avatar Sébastien Escudier

live555 : only check for the error code in the result message string.

parent 3465cf2a
...@@ -586,9 +586,8 @@ describe: ...@@ -586,9 +586,8 @@ describe:
&i_code ); &i_code );
else else
{ {
const char *psz_tmp = strstr( psz_error, "RTSP" ); if( strstr( psz_error, "401" ) )
if( psz_tmp ) i_code = 401;
sscanf( psz_tmp, "RTSP/%*s%3u", &i_code );
else else
i_code = 0; i_code = 0;
} }
...@@ -739,8 +738,7 @@ static int SessionsSetup( demux_t *p_demux ) ...@@ -739,8 +738,7 @@ static int SessionsSetup( demux_t *p_demux )
{ {
/* if we get an unsupported transport error, toggle TCP /* if we get an unsupported transport error, toggle TCP
* use and try again */ * use and try again */
if( !strstr(p_sys->env->getResultMsg(), if( !strstr(p_sys->env->getResultMsg(),"461")
"461 Unsupported Transport")
|| !p_sys->rtsp->setupMediaSubsession( *sub, False, || !p_sys->rtsp->setupMediaSubsession( *sub, False,
!toBool( b_rtsp_tcp ), False ) ) !toBool( b_rtsp_tcp ), False ) )
{ {
......
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