From 3896a0a44df039f294a726eeac7a30044f4a5566 Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Mon, 26 Nov 2018 20:42:03 +0900 Subject: [PATCH] subparse: consider the seeking during parsing buffer - after seeking, whole subtitle text will be delivered from the start position again followed by previous buffer data. Change-Id: I8a84352ea5226d044fed53e2107a5280921326a6 --- gst/subparse/samiparse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/subparse/samiparse.c b/gst/subparse/samiparse.c index 8d614c9..0ed207e 100644 --- a/gst/subparse/samiparse.c +++ b/gst/subparse/samiparse.c @@ -698,6 +698,13 @@ html_context_parse (HtmlContext * ctxt, gchar * text, gsize text_len) return; } +#ifdef TIZEN_FEATURE_SUBPARSE_MODIFICATION + /* after seeking, + the subtitle file will be delivered from the start again. */ + if (strcasestr(next, "")) + next = strcasestr(next, ""); +#endif + next = string_token (next, ">", &element); next++; if (g_str_has_suffix (next, "/")) { -- 2.7.4