diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-04 00:15:08 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:57:31 +0200 |
| commit | 3400e2d9ca9176289b581e72eac493909a0bbce1 (patch) | |
| tree | cd3e53b7c1baeed3992f4c36d25dea21128fbf91 /src/reel_smpte_text_asset.cc | |
| parent | 54b46b7630c06044a121d70d9035384126f6e7b3 (diff) | |
Rename TextType::SUBTITLE -> OPEN_SUBTITLE and CAPTION -> CLOSED_CAPTION.
Diffstat (limited to 'src/reel_smpte_text_asset.cc')
| -rw-r--r-- | src/reel_smpte_text_asset.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reel_smpte_text_asset.cc b/src/reel_smpte_text_asset.cc index 76efab44..7950dfd2 100644 --- a/src/reel_smpte_text_asset.cc +++ b/src/reel_smpte_text_asset.cc @@ -72,9 +72,9 @@ string ReelSMPTETextAsset::cpl_node_name() const { switch (_type) { - case TextType::SUBTITLE: + case TextType::OPEN_SUBTITLE: return "MainSubtitle"; - case TextType::CAPTION: + case TextType::CLOSED_CAPTION: return "tt:ClosedCaption"; } @@ -87,9 +87,9 @@ pair<string, string> ReelSMPTETextAsset::cpl_node_namespace() const { switch (_type) { - case TextType::SUBTITLE: + case TextType::OPEN_SUBTITLE: return {}; - case TextType::CAPTION: + case TextType::CLOSED_CAPTION: return make_pair("http://www.smpte-ra.org/schemas/429-12/2008/TT", "tt"); } @@ -102,7 +102,7 @@ xmlpp::Element * ReelSMPTETextAsset::write_to_cpl(xmlpp::Element* node, Standard standard) const { auto asset = ReelFileAsset::write_to_cpl (node, standard); - string const ns = _type == TextType::CAPTION ? "tt" : ""; + string const ns = _type == TextType::CLOSED_CAPTION ? "tt" : ""; if (_language) { cxml::add_child(asset, "Language", ns)->add_child_text(*_language); } |
