qtdemux: fix bug for getting the bool value incorrectly in spherical xml 14/170114/1
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 18 Jan 2018 05:51:54 +0000 (14:51 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 13 Feb 2018 08:31:31 +0000 (17:31 +0900)
Change-Id: Ia1c53145a71288acd40da9df50fd6a22c6c8eb1b

gst/isomp4/qtdemux.c

index f801b8f..fe59298 100644 (file)
@@ -2859,7 +2859,7 @@ _get_bool_value_from_xml_string (GstQTDemux * qtdemux,
     return;
   }
 
-  *value = strstr (value_start, "true") ? TRUE : FALSE;
+  *value = g_strstr_len(value_start, 5, "true") ? TRUE : FALSE;
 
   return;
 }