Commit 417715c9 authored by Sébastien Escudier's avatar Sébastien Escudier

rtsp : display a message if the server forbids the connection

refs #6461
parent 831d5b0e
......@@ -655,7 +655,12 @@ describe:
if( i_code == 0 )
msg_Dbg( p_demux, "connection timeout" );
else
{
msg_Dbg( p_demux, "connection error %d", i_code );
if( i_code == 403 )
dialog_Fatal( p_demux, _("RTSP connection failed"),
_("You are not allowed to access this server.") );
}
if( p_sys->rtsp ) RTSPClient::close( p_sys->rtsp );
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