summaryrefslogtreecommitdiff
path: root/src/lib/dcp_examiner.cc
diff options
context:
space:
mode:
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 */