diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-12 20:21:28 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:22 +0100 |
| commit | 621b82e1a5dfeb34602f336d645c670618d6db7e (patch) | |
| tree | c1ddb818231af715c6125168a51aab9fe796a2e8 /src/verify.cc | |
| parent | f5bd0937a730e9dbb58f955c11df41abc56e89b5 (diff) | |
Bv2.1 6.2.1: Check that additional subtitle languages conform to RFC 5646.
Diffstat (limited to 'src/verify.cc')
| -rw-r--r-- | src/verify.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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()); |
