[vlc-commits] live555 : check for NULL string in OPTION callback

Sébastien Escudier git at videolan.org
Mon Feb 7 09:24:46 CET 2011


vlc | branch: master | Sébastien Escudier <sebastien-devel at celeos.eu> | Mon Feb  7 09:22:33 2011 +0100| [f04ccd33807d76df26aaa5e4baf5925423e129c3] | committer: Sébastien Escudier

live555 : check for NULL string in OPTION callback

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f04ccd33807d76df26aaa5e4baf5925423e129c3
---

 modules/demux/live555.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/live555.cpp b/modules/demux/live555.cpp
index 1e8f522..2db3a11 100644
--- a/modules/demux/live555.cpp
+++ b/modules/demux/live555.cpp
@@ -550,7 +550,7 @@ static void continueAfterOPTIONS( RTSPClient* client, int result_code,
     }
     else
     {
-        p_sys->b_get_param = (bool)strstr( result_string, "GET_PARAMETER" );
+        p_sys->b_get_param = result_string != NULL && strstr( result_string, "GET_PARAMETER" ) != NULL;
         client->sendDescribeCommand( continueAfterDESCRIBE );
     }
     delete[] result_string;



More information about the vlc-commits mailing list