]> git.sesse.net Git - vlc/commitdiff
live555 : check for NULL string in OPTION callback
authorSébastien Escudier <sebastien-devel@celeos.eu>
Mon, 7 Feb 2011 08:22:33 +0000 (09:22 +0100)
committerSébastien Escudier <sebastien-devel@celeos.eu>
Mon, 7 Feb 2011 08:22:33 +0000 (09:22 +0100)
modules/demux/live555.cpp

index 1e8f522fcbd1f1d08a112dac492e911d86cfc762..2db3a113d456928dee42d30b74a10bfcff9d7558 100644 (file)
@@ -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;