]> git.sesse.net Git - vlc/commitdiff
live555: unbreak windows RTSP servers (introduced in c0d37c7c881712e182f03b52d0b00a91...
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 2 Feb 2009 22:33:10 +0000 (23:33 +0100)
committerJean-Paul Saman <jpsaman@videolan.org>
Mon, 2 Feb 2009 22:33:34 +0000 (23:33 +0100)
modules/demux/live555.cpp

index 1643f8b6b954b2f9b67d80bbc2a61e8052580aba..00b51715c46569702444d1047f3c81305e03fc79 100644 (file)
@@ -564,19 +564,17 @@ describe:
 #endif
     }
     if( psz_options )
-    {
         p_sys->b_get_param = strstr( psz_options, "GET_PARAMETER" ) ? true : false ;
+    delete [] psz_options;
+
 #if LIVEMEDIA_LIBRARY_VERSION_INT >= 1223337600
-        p_sdp = p_sys->rtsp->describeWithPassword( psz_url, (const char*)psz_user, (const char*)psz_pwd,
+    p_sdp = p_sys->rtsp->describeWithPassword( psz_url, (const char*)psz_user, (const char*)psz_pwd,
                                           var_GetBool( p_demux, "rtsp-kasenna" ), timeout );
 #else
-        p_sdp = p_sys->rtsp->describeWithPassword( psz_url, (const char*)psz_user, (const char*)psz_pwd,
+    p_sdp = p_sys->rtsp->describeWithPassword( psz_url, (const char*)psz_user, (const char*)psz_pwd,
                                           var_GetBool( p_demux, "rtsp-kasenna" ) );
 #endif
 
-    }
-    delete [] psz_options;
-
     if( p_sdp == NULL )
     {
         /* failure occurred */