summaryrefslogtreecommitdiff
path: root/src/cpl.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-04-02 01:27:05 +0200
committerCarl Hetherington <cth@carlh.net>2026-04-02 01:27:05 +0200
commite9478016478ac65d33a7cb07f067242bc9be2822 (patch)
tree4deb871f14830d22d3ed5afe9ea69241a37db16b /src/cpl.cc
parent5fe14174334968cbe65454f8f7b14512aa6c50ee (diff)
parenta0814a2e44e56d0378c6a47ca9c741de5cfe6356 (diff)
Merge branch 'tidy-verify'v1.10.54
This adjusts how the details of a lot of verification errors and warnings are handled.
Diffstat (limited to 'src/cpl.cc')
-rw-r--r--src/cpl.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/cpl.cc b/src/cpl.cc
index 27481939..cac3c2eb 100644
--- a/src/cpl.cc
+++ b/src/cpl.cc
@@ -127,11 +127,7 @@ CPL::CPL(boost::filesystem::path file, vector<dcp::VerificationNote>* notes)
} else {
if (notes) {
notes->push_back(
- dcp::VerificationNote(
- dcp::VerificationNote::Code::INVALID_CPL_NAMESPACE,
- f.namespace_uri(),
- file
- )
+ dcp::VerificationNote(dcp::VerificationNote::Code::INVALID_CPL_NAMESPACE, file).set_xml_namespace(f.namespace_uri())
);
}
_standard = Standard::INTEROP;
@@ -159,12 +155,8 @@ CPL::CPL(boost::filesystem::path file, vector<dcp::VerificationNote>* notes)
/* ContentVersion is required in SMPTE */
if (notes) {
notes->push_back(
- dcp::VerificationNote(
- dcp::VerificationNote::Code::MISSING_CPL_CONTENT_VERSION,
- _id,
- file
- )
- );
+ dcp::VerificationNote(dcp::VerificationNote::Code::MISSING_CPL_CONTENT_VERSION, file).set_cpl_id(_id)
+ );
}
}
auto rating_list = f.node_child("RatingList");
@@ -328,9 +320,8 @@ CPL::read_composition_metadata_asset(cxml::ConstNodePtr node, vector<dcp::Verifi
notes->push_back(
dcp::VerificationNote(
dcp::VerificationNote::Code::INVALID_MAIN_SOUND_CONFIGURATION,
- fmt::format("{} could not be parsed", _main_sound_configuration->as_string()),
*_file
- ).set_cpl_id(_id)
+ ).set_cpl_id(_id).set_error(fmt::format("{} could not be parsed", _main_sound_configuration->as_string()))
);
}
}