summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-12-08 23:53:23 +0100
committerCarl Hetherington <cth@carlh.net>2025-12-08 23:53:23 +0100
commit216166d7a5457815917472daffd7ca18e1c31a3a (patch)
treeaed6372bf8b040968b647b7e15d5b46047c35bd0
parent494406afd32db350778e7b6be2aecc7d10b15125 (diff)
Move remove_parameters() out to a static method.
-rw-r--r--src/dcp.cc11
-rw-r--r--src/dcp.h2
2 files changed, 9 insertions, 4 deletions
diff --git a/src/dcp.cc b/src/dcp.cc
index c01ecc96..bc85aed5 100644
--- a/src/dcp.cc
+++ b/src/dcp.cc
@@ -153,6 +153,13 @@ DCP::read_assetmap() const
}
+string
+DCP::remove_parameters(string const& n)
+{
+ return n.substr(0, n.find(";"));
+}
+
+
void
DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_mxf_type)
{
@@ -220,10 +227,6 @@ DCP::read (vector<dcp::VerificationNote>* notes, bool ignore_incorrect_picture_m
continue;
}
- auto remove_parameters = [](string const& n) {
- return n.substr(0, n.find(";"));
- };
-
/* Remove any optional parameters (after ;) */
pkl_type = pkl_type->substr(0, pkl_type->find(";"));
diff --git a/src/dcp.h b/src/dcp.h
index 482f4969..f11ec711 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -205,6 +205,8 @@ private:
/** Throws MissingAssetmapError if asset map could not be found */
AssetMap read_assetmap() const;
+ static std::string remove_parameters(std::string const& n);
+
/** The directory that we are writing to */
boost::filesystem::path _directory;
/** The CPLs that make up this DCP */