ttmlparse: don't filter out untimed whitespace
authorChris Bass <floobleflam@gmail.com>
Fri, 7 Apr 2017 09:16:46 +0000 (10:16 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 9 Apr 2017 07:42:16 +0000 (10:42 +0300)
commitb4d9d9d9f8dd7c0ed1fcd8336a71b6c44ef28655
treef21e8b364500a7f9a874311233487ad0e9a25a2e
parent89b6b1a76077404b126c11ef59562f455a6ba939
ttmlparse: don't filter out untimed whitespace

Significant whitespace in elements that don't have begin/end values
should inherit timing from its parent, or if no its parents have no
timing, from the document's Root Temporal Extent. Currently, such
whitespace is removed, which is not spec-compliant. Fix this by
retaining whitespace in content nodes, and assigning a Root Temporal
Extent of 24 hours to any significant whitespace whose parents have no
associated timing.

https://bugzilla.gnome.org/show_bug.cgi?id=781027
ext/ttml/ttmlparse.c