summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-01 15:51:59 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-01 15:51:59 +0200
commit3ae2dd3d236af698663457117fef67bdabf0ec3e (patch)
tree2435d88cb1fcbb2858947df93ce5604aafd1f60a
parent159cead4f6bdc69edfc4d509fb929057688d203f (diff)
Support MainCaption/ClosedSubtitle for reading.v1.10.30
Even if they apparently aren't supposed to be used... https://registry-page.isdcf.com/openandclosedcaptions/
-rw-r--r--src/reel_text_asset.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/reel_text_asset.cc b/src/reel_text_asset.cc
index 31cbdacd..c6de58be 100644
--- a/src/reel_text_asset.cc
+++ b/src/reel_text_asset.cc
@@ -73,8 +73,12 @@ ReelTextAsset::ReelTextAsset(std::shared_ptr<const cxml::Node> node)
{
if (node->name() == "MainSubtitle") {
_type = TextType::OPEN_SUBTITLE;
+ } else if (node->name() == "MainCaption") {
+ _type = TextType::OPEN_CAPTION;
} else if (node->name() == "MainClosedCaption" || node->name() == "ClosedCaption") {
_type = TextType::CLOSED_CAPTION;
+ } else if (node->name() == "ClosedSubtitle") {
+ _type = TextType::CLOSED_SUBTITLE;
} else {
DCP_ASSERT(false);
}