]> git.sesse.net Git - vlc/commitdiff
rtsp : display a message if the server forbids the connection
authorSébastien Escudier <sebastien-devel@celeos.eu>
Fri, 23 Mar 2012 08:55:12 +0000 (09:55 +0100)
committerSébastien Escudier <sebastien-devel@celeos.eu>
Fri, 23 Mar 2012 08:58:54 +0000 (09:58 +0100)
refs #6461

modules/demux/live555.cpp

index e58f36a37f1bf4811c663e2c46ce3a82f1c86ff6..9b77dbae419da7d02e8f4c2c7c8174bd10276b1f 100644 (file)
@@ -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;
         }