summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/verify.cc b/src/verify.cc
index 032a3f39..6611b7b3 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -170,6 +170,9 @@ dcp::verify (vector<boost::filesystem::path> directories, function<void (string,
if (!good_date(cpl_doc.string_child("IssueDate"))) {
notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::Code::BAD_DATE, string("CPL <IssueDate> is malformed")));
}
+ if (cpl->standard() && cpl->standard().get() == SMPTE && !good_urn_uuid(cpl_doc.node_child("ContentVersion")->string_child("Id"))) {
+ notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::Code::BAD_URN_UUID, string("<ContentVersion> <Id> is malformed.")));
+ }
/* Check that the CPL's hash corresponds to the PKL */
BOOST_FOREACH (shared_ptr<PKL> i, dcp->pkls()) {