ttmlparse: Ensure default showBackground behaviour is enacted

Ensure that region backgrounds are always show when tts:showBackground
is not explicitly set, in accordance with the default behavour given in
the TTML spec.

https://bugzilla.gnome.org/show_bug.cgi?id=787942
This commit is contained in:
Chris Bass 2017-09-19 15:37:42 +01:00 committed by Sebastian Dröge
parent 650adc43a9
commit 3d2f004db2

View file

@ -1775,7 +1775,7 @@ ttml_assign_region_times (GList * region_trees, GstClockTime doc_begin,
const gchar *show_background_value =
ttml_style_set_get_attr (region->style_set, "showBackground");
gboolean always_visible =
(g_strcmp0 (show_background_value, "always") == 0);
(g_strcmp0 (show_background_value, "whenActive") != 0);
GstSubtitleColor region_color = { 0, 0, 0, 0 };
if (ttml_style_set_contains_attr (region->style_set, "backgroundColor"))