diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-03 14:49:25 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-03 17:12:34 +0200 |
| commit | 0a5d3c77247d3e68a144bfc077c29fbcf3819735 (patch) | |
| tree | ea2668d75f078d6fd290e038d5d5a9ed09c13bd9 /src/lib/dcp_content.cc | |
| parent | 34eb57979b5293ac3b864310f8fc8c77c26343e2 (diff) | |
Bump libdcp for better ContentKind support, and libsub
for fixes to \c tags in SSA files.
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 62b74be90..193c9995a 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -148,7 +148,7 @@ DCPContent::DCPContent (cxml::ConstNodePtr node, int version) auto ck = node->optional_string_child("ContentKind"); if (ck) { - _content_kind = dcp::content_kind_from_string (*ck); + _content_kind = dcp::ContentKind::from_name(*ck); } _cpl = node->optional_string_child("CPL"); for (auto i: node->node_children("ReelLength")) { @@ -388,7 +388,7 @@ DCPContent::as_xml (xmlpp::Node* node, bool with_paths) const } node->add_child("ThreeD")->add_child_text (_three_d ? "1" : "0"); if (_content_kind) { - node->add_child("ContentKind")->add_child_text(dcp::content_kind_to_string(*_content_kind)); + node->add_child("ContentKind")->add_child_text(_content_kind->name()); } if (_cpl) { node->add_child("CPL")->add_child_text (_cpl.get ()); |
