- In the case of sami subtitles, the duration for the last subtitle data is wrong.
- The time value used to calculate the duraion is invalid,
So the calculated duration is also wrong.
- If the time is GST_CLOCK_TIME_NONE, the duration also be GST_CLOCK_TIME_NONE
Change-Id: Ic3eff678430229879880dcbc8c13743ca6260252
ret = g_string_free (context->resultbuf, FALSE);
context->resultbuf = g_string_new ("");
state->start_time = context->time1;
+#ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION
+ if (!GST_CLOCK_TIME_IS_VALID(context->time2))
+ state->duration = GST_CLOCK_TIME_NONE;
+ else
+ state->duration = context->time2 - context->time1;
+#else
state->duration = context->time2 - context->time1;
+#endif
context->has_result = FALSE;
}
#ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION