diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cpl.h | 5 | ||||
| -rw-r--r-- | src/verify.cc | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -54,6 +54,9 @@ #include <vector> +struct verify_invalid_sound_reel_and_additional_language; + + namespace dcp { @@ -280,6 +283,8 @@ protected: std::string pkl_type (Standard standard) const; private: + friend struct ::verify_invalid_sound_reel_and_additional_language; + void maybe_write_composition_metadata_asset (xmlpp::Element* node) const; void read_composition_metadata_asset (cxml::ConstNodePtr node); diff --git a/src/verify.cc b/src/verify.cc index e5deb789..16233021 100644 --- a/src/verify.cc +++ b/src/verify.cc @@ -643,6 +643,10 @@ dcp::verify ( stage ("Checking CPL", cpl->file()); validate_xml (cpl->file().get(), xsd_dtd_directory, notes); + BOOST_FOREACH (string const& i, cpl->additional_subtitle_languages()) { + verify_language_tag (i, notes); + } + /* Check that the CPL's hash corresponds to the PKL */ BOOST_FOREACH (shared_ptr<PKL> i, dcp->pkls()) { optional<string> h = i->hash(cpl->id()); |
