From: Carl Hetherington Date: Tue, 19 Mar 2019 20:52:38 +0000 (+0000) Subject: ContentVersion is required by SMPTE, I think. X-Git-Tag: v1.8.0~467 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=d06f8f2d2538d9acf1b93104e901810e3643949f;p=libdcp.git ContentVersion is required by SMPTE, I think. --- diff --git a/src/cpl.cc b/src/cpl.cc index 11e7e1c7..b65ffd92 100644 --- a/src/cpl.cc +++ b/src/cpl.cc @@ -104,6 +104,9 @@ CPL::CPL (boost::filesystem::path file) _content_version_id = content_version->optional_string_child ("Id").get_value_or (""); _content_version_label_text = content_version->string_child ("LabelText"); content_version->done (); + } else if (_standard == SMPTE) { + /* ContentVersion is required in SMPTE */ + throw XMLError ("Missing ContentVersion tag in CPL"); } cxml::ConstNodePtr rating_list = f.node_child ("RatingList"); if (rating_list) {