]> git.sesse.net Git - vlc/commitdiff
don't try http tunneling in case of error 404. Also add a debug message.
authorSébastien Escudier <sebastien-devel@celeos.eu>
Thu, 7 Oct 2010 09:38:40 +0000 (11:38 +0200)
committerSébastien Escudier <sebastien-devel@celeos.eu>
Thu, 7 Oct 2010 12:25:37 +0000 (14:25 +0200)
modules/demux/live555.cpp

index e82207ea2dabce22007e77833c53b2498735d998..2d0c64fa14bbfde31ac45a9a3703194c87a237c6 100644 (file)
@@ -651,7 +651,7 @@ 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 */
             msg_Dbg( p_demux, "we will now try HTTP tunneling mode" );
@@ -664,6 +664,8 @@ describe:
         {
             if( i_code == 0 )
                 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 );
             p_sys->rtsp = NULL;
         }