From 3ae2dd3d236af698663457117fef67bdabf0ec3e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Oct 2025 15:51:59 +0200 Subject: Support MainCaption/ClosedSubtitle for reading. Even if they apparently aren't supposed to be used... https://registry-page.isdcf.com/openandclosedcaptions/ --- src/reel_text_asset.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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 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); } -- cgit v1.2.3