live555: really toggle tcp flag - fix [ef4da62761]
authorRafaël Carré <rcarre@m2x.nl>
Mon, 25 Aug 2008 10:15:11 +0000 (12:15 +0200)
committerRafaël Carré <rcarre@m2x.nl>
Mon, 25 Aug 2008 10:15:11 +0000 (12:15 +0200)
modules/demux/live555.cpp

index 2ae9ab1..89d1240 100644 (file)
@@ -730,7 +730,7 @@ static int SessionsSetup( demux_t *p_demux )
                     /* 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,
                     /* 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,
-                                           !b_rtsp_tcp ? False : True,
+                                           b_rtsp_tcp ? False : True,
                                            False ) )
                     {
                         msg_Err( p_demux, "SETUP of'%s/%s' failed %s", sub->mediumName(),
                                            False ) )
                     {
                         msg_Err( p_demux, "SETUP of'%s/%s' failed %s", sub->mediumName(),