mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
ttmlparse: Ensure only single TTML doc parsed
The parser handles only one TTML file at a time, therefore if there are multiple TTML documets in the input, parse only the first. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1539>
This commit is contained in:
parent
dd7b672830
commit
8df2314c23
1 changed files with 1 additions and 1 deletions
|
@ -1952,7 +1952,7 @@ ttml_parse (const gchar * input, GstClockTime begin, GstClockTime duration,
|
|||
}
|
||||
GST_CAT_LOG (ttmlparse_debug, "Input:\n%s", input);
|
||||
|
||||
end_tt = g_strrstr (input, TTML_END_TAG);
|
||||
end_tt = g_strstr_len (input, strlen (input), TTML_END_TAG);
|
||||
|
||||
if (!end_tt) {
|
||||
GST_CAT_DEBUG (ttmlparse_debug, "Need more data");
|
||||
|
|
Loading…
Reference in a new issue