diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-03-19 20:52:38 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-03-19 20:52:38 +0000 |
| commit | d06f8f2d2538d9acf1b93104e901810e3643949f (patch) | |
| tree | 3c638613033a73412eac86b5f4184f4bfe57fc53 /src | |
| parent | 3bae1fb76f8d4751ee62717e3f18cee47d1deb90 (diff) | |
ContentVersion is required by SMPTE, I think.
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |
