[vlc-commits] rtsp : display a message if the server forbids the connection
Sébastien Escudier
git at videolan.org
Fri Mar 23 10:11:00 CET 2012
vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Fri Mar 23 09:55:12 2012 +0100| [417715c9f26970b0bcace33e836b36ecebeb3b43] | committer: Sébastien Escudier
rtsp : display a message if the server forbids the connection
refs #6461
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=417715c9f26970b0bcace33e836b36ecebeb3b43
---
modules/demux/live555.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index e58f36a..9b77dba 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -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;
}
More information about the vlc-commits
mailing list