summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-05-14 00:30:21 +0200
committerCarl Hetherington <cth@carlh.net>2023-05-14 20:45:40 +0200
commitdea00c1b3845382e900b7e592fe4550e95e1bdc0 (patch)
tree1ab5cfda356b3ed6ce7ceeef85e08ad05e7742c7 /src/lib/dcp_examiner.cc
parent0f3797af7a31fab73d2f963d7690d11853f72865 (diff)
Don't scan the directory on DCPContent creation; instead do it when2528-content
the examine() happens.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
-rw-r--r--src/lib/dcp_examiner.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index 9c4f899c6..b9ff3a238 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -61,11 +61,12 @@ using std::vector;
using boost::optional;
-DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
+DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant, vector<boost::filesystem::path> const& paths)
+ : _paths(paths)
{
shared_ptr<dcp::CPL> selected_cpl;
- auto cpls = dcp::find_and_resolve_cpls (content->directories(), tolerant);
+ auto cpls = dcp::find_and_resolve_cpls(dcp::DCP::directories_from_files(_paths), tolerant);
if (content->cpl ()) {
/* Use the CPL that was specified, or that the content was using before */