diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dcp.cc | 11 | ||||
| -rw-r--r-- | src/dcp.h | 2 |
2 files changed, 9 insertions, 4 deletions
@@ -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(";")); @@ -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 */ |
