summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-19 20:52:38 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-19 20:52:38 +0000
commitd06f8f2d2538d9acf1b93104e901810e3643949f (patch)
tree3c638613033a73412eac86b5f4184f4bfe57fc53 /src
parent3bae1fb76f8d4751ee62717e3f18cee47d1deb90 (diff)
ContentVersion is required by SMPTE, I think.
Diffstat (limited to 'src')
-rw-r--r--src/cpl.cc3
1 files changed, 3 insertions, 0 deletions
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) {