subparse: Fix error in the calculation that compares start_time and end_time 54/306754/3
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 27 Feb 2024 05:46:05 +0000 (14:46 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 5 Mar 2024 07:29:39 +0000 (16:29 +0900)
Change-Id: I56361f3c1f627fd47cab2c8416299abf04e2918c

packaging/gstreamer.spec
subprojects/gst-plugins-base/gst/subparse/gstsubparse.c

index 7c99464e4147a4ef133a0f732375db24a57fd5ab..0142cc43261a4c000ddcf6e232d178af3f93e77c 100644 (file)
@@ -62,7 +62,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        54
+Release:        55
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index e7a12de5a58b9dadaf0fd48d4d01f022c86d182f..e78386205ed595a1274ccc53e33c580254cace2f 100644 (file)
@@ -1286,7 +1286,13 @@ parse_webvtt (ParserState * state, const gchar * line)
     if ((end_time = strstr (line, " --> ")) &&
         parse_subrip_time (line, &ts_start) &&
         parse_subrip_time (end_time + strlen (" --> "), &ts_end) &&
+#ifdef TIZEN_FEATURE_HLS_WEBVTT
+        state->start_time <=
+            (ts_end + MPEGTIME_TO_GSTTIME (state->mpegts) - state->local)) {
+#else
         state->start_time <= ts_end) {
+#endif
+
       state->state = 2;
       state->start_time = ts_start;
 #ifdef TIZEN_FEATURE_HLS_WEBVTT