projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bae1fb
)
ContentVersion is required by SMPTE, I think.
author
Carl Hetherington
<cth@carlh.net>
Tue, 19 Mar 2019 20:52:38 +0000
(20:52 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 19 Mar 2019 20:52:38 +0000
(20:52 +0000)
src/cpl.cc
patch
|
blob
|
history
diff --git
a/src/cpl.cc
b/src/cpl.cc
index 11e7e1c74707aa669301ab77b01afd238a6b25f3..b65ffd92f85a6dcf0085efef1d7feb4324b72122 100644
(file)
--- 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) {