]> git.sesse.net Git - vlc/commitdiff
live555: Fix fallback case for unsupported transport.
authorDerk-Jan Hartman <hartman@videolan.org>
Mon, 21 Jul 2008 12:33:03 +0000 (14:33 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Mon, 21 Jul 2008 12:33:03 +0000 (14:33 +0200)
This was broken by [175310ff6066991ee45e2a839f8c53e12b75e6d4] which introduced "forced mcast".

modules/demux/live555.cpp

index cd77304949303be1552f1a3b92cdc8d60b5dd4b8..63791817a2941a8cbeffe95866a700290ed6e51d 100644 (file)
@@ -723,18 +723,15 @@ static int SessionsSetup( demux_t *p_demux )
             /* Issue the SETUP */
             if( p_sys->rtsp )
             {
-                bool tcp = b_rtsp_tcp;
-                bool mcast = p_sys->b_force_mcast;
                 if( !p_sys->rtsp->setupMediaSubsession( *sub, False,
-                                           tcp ? True : False,
-                                           ( mcast && !tcp ) ? True : False ) )
+                                           b_rtsp_tcp ? True : False,
+                                           ( p_sys->b_force_mcast && !b_rtsp_tcp ) ? True : False ) )
                 {
-                    tcp = !tcp;
                     /* if we get an unsupported transport error, toggle TCP use and try again */
                     if( !strstr(p_sys->env->getResultMsg(), "461 Unsupported Transport")
                      || !p_sys->rtsp->setupMediaSubsession( *sub, False,
-                                           tcp ? False : True,
-                                           ( mcast && !tcp ) ? True : False ) )
+                                           !b_rtsp_tcp ? False : True,
+                                           False ) )
                     {
                         msg_Err( p_demux, "SETUP of'%s/%s' failed %s", sub->mediumName(),
                                  sub->codecName(), p_sys->env->getResultMsg() );