summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-01 20:57:45 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-07 22:45:21 +0100
commitf7dff91e6a4dffeace24280f5f5970d6cbd7a082 (patch)
treea95d2e94656c9635dbe75f4087f2c8c8fafd9dc6 /src
parenta639f6822e4eb3d6ead611776583b5dc6909212a (diff)
Cleanup: extract verify_assetmap().
Diffstat (limited to 'src')
-rw-r--r--src/verify.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/verify.cc b/src/verify.cc
index a797813a..b554612b 100644
--- a/src/verify.cc
+++ b/src/verify.cc
@@ -1637,6 +1637,19 @@ verify_pkl(
}
+
+static
+void
+verify_assetmap(
+ shared_ptr<const DCP> dcp,
+ boost::filesystem::path xsd_dtd_directory,
+ vector<VerificationNote>& notes
+ )
+{
+ validate_xml(dcp->asset_map_path().get(), xsd_dtd_directory, notes);
+}
+
+
vector<VerificationNote>
dcp::verify (
vector<boost::filesystem::path> directories,
@@ -1703,7 +1716,7 @@ dcp::verify (
if (dcp->asset_map_path()) {
stage ("Checking ASSETMAP", dcp->asset_map_path().get());
- validate_xml (dcp->asset_map_path().get(), *xsd_dtd_directory, notes);
+ verify_assetmap(dcp, *xsd_dtd_directory, notes);
} else {
notes.push_back ({VerificationNote::Type::ERROR, VerificationNote::Code::MISSING_ASSETMAP});
}