diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-19 22:44:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-19 23:45:23 +0100 |
| commit | 27b83475435dda4e84a90cf59a52f150905c4ab1 (patch) | |
| tree | 51d0158c7a879f6b2f3c40843c5e5e455069a1dc /src/lib/types.cc | |
| parent | 9cb73fbc0fa4643612f01665bc6d9fc430656f32 (diff) | |
Clean up after previous commit.
Diffstat (limited to 'src/lib/types.cc')
| -rw-r--r-- | src/lib/types.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/types.cc b/src/lib/types.cc index 68e00c8d5..97373b24e 100644 --- a/src/lib/types.cc +++ b/src/lib/types.cc @@ -91,26 +91,26 @@ Crop::as_xml (xmlpp::Node* node) const node->add_child("BottomCrop")->add_child_text (raw_convert<string> (bottom)); } -TextType -string_to_text_type (string s) +CaptionType +string_to_caption_type (string s) { - if (s == "subtitle") { - return TEXT_SUBTITLE; - } else if (s == "ccap") { - return TEXT_CLOSED_CAPTION; + if (s == "open") { + return CAPTION_OPEN; + } else if (s == "closed") { + return CAPTION_CLOSED; } else { - throw MetadataError (String::compose ("Unknown text type %1", s)); + throw MetadataError (String::compose ("Unknown caption type %1", s)); } } string -text_type_to_string (TextType t) +caption_type_to_string (CaptionType t) { switch (t) { - case TEXT_SUBTITLE: - return "subtitle"; - case TEXT_CLOSED_CAPTION: - return "ccap"; + case CAPTION_OPEN: + return "open"; + case CAPTION_CLOSED: + return "closed"; default: DCPOMATIC_ASSERT (false); } |
