subparse: don't reset allowed tags
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 7 Jul 2016 15:37:51 +0000 (17:37 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 7 Jul 2016 17:38:07 +0000 (19:38 +0200)
commitc646c62a025a3c44a4b58d3553bb599ed295af25
tree1c186c7d40b7b60f366148558af1e62859744e8e
parent7960bc0380b0ef45d641cc35ca35b34dea41e300
subparse: don't reset allowed tags

When a discont buffer is processed, the state is re-initialized, which
nullifies the allowed_tags.

The problem is when a subrip string with tags is processed and allowed_tags is
NULL. The function subrip_unescape_formatting() calls g_strjoinv with a
str_array as NULL, leading to a GLib-CRITICAL.

This patch removes the allowed_tags resetting, in parser_state_init(), but
move it into gst_sub_parse_format_autodetect().

https://bugzilla.gnome.org/show_bug.cgi?id=768525
gst/subparse/gstsubparse.c