mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-11 06:11:27 +00:00
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:
parent
650adc43a9
commit
3d2f004db2
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue