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

don't try http tunneling in case of error 404. Also add a debug message.

parent e21d626d
...@@ -651,7 +651,7 @@ describe: ...@@ -651,7 +651,7 @@ describe:
goto describe; goto describe;
} }
} }
else if( (i_code > 0) && !var_GetBool( p_demux, "rtsp-http" ) ) else if( i_code > 0 && i_code != 404 && !var_GetBool( p_demux, "rtsp-http" ) )
{ {
/* Perhaps a firewall is being annoying. Try HTTP tunneling mode */ /* Perhaps a firewall is being annoying. Try HTTP tunneling mode */
msg_Dbg( p_demux, "we will now try HTTP tunneling mode" ); msg_Dbg( p_demux, "we will now try HTTP tunneling mode" );
...@@ -664,6 +664,8 @@ describe: ...@@ -664,6 +664,8 @@ describe:
{ {
if( i_code == 0 ) if( i_code == 0 )
msg_Dbg( p_demux, "connection timeout" ); msg_Dbg( p_demux, "connection timeout" );
else
msg_Dbg( p_demux, "connection error %d", i_code );
if( p_sys->rtsp ) RTSPClient::close( p_sys->rtsp ); if( p_sys->rtsp ) RTSPClient::close( p_sys->rtsp );
p_sys->rtsp = NULL; p_sys->rtsp = NULL;
} }
......
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