From: Eunhae Choi Date: Mon, 26 Nov 2018 11:42:03 +0000 (+0900) Subject: subparse: consider the seeking during parsing buffer X-Git-Tag: accepted/tizen/unified/20181128.074036^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3896a0a44df039f294a726eeac7a30044f4a5566;p=platform%2Fupstream%2Fgst-plugins-base.git 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 --- 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, "/")) {