summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Bass <floobleflam@gmail.com>2017-09-19 15:37:42 +0100
committerSebastian Dröge <sebastian@centricular.com>2017-10-19 15:56:33 +0200
commita45b49cbd52055b567749572ef0a098dad3e5143 (patch)
tree980077029d92e52d4b2d353121403a3e1fc4cc83
parent8f66ff25f9cabc170c57d75a74984103c7fcb965 (diff)
downloadgstreamer-plugins-bad-a45b49cbd52055b567749572ef0a098dad3e5143.tar.gz
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
-rw-r--r--ext/ttml/ttmlparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ttml/ttmlparse.c b/ext/ttml/ttmlparse.c
index 2759b69e5..2c99cd93a 100644
--- a/ext/ttml/ttmlparse.c
+++ b/ext/ttml/ttmlparse.c
@@ -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"))