summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-01-20 00:31:32 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-20 20:36:46 +0100
commit385635f00d39822389adbc99a2d5bdd992f16432 (patch)
tree284ad0ac65988eb102f0f6334701496213cfd7a7 /src/lib/dcp_content.cc
parent0b66748421b751b1863ce86f98ab449c8e8e87fc (diff)
Pass tolerant flag into Content::examine() and the ExamineContentJob.
Along the way this helps to fix #2942.
Diffstat (limited to 'src/lib/dcp_content.cc')
-rw-r--r--src/lib/dcp_content.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index 5b4f163e1..ae2a08c29 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -229,7 +229,7 @@ DCPContent::read_sub_directory (boost::filesystem::path p)
/** @param film Film, or 0 */
void
-DCPContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
+DCPContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bool tolerant)
{
bool const needed_assets = needs_assets ();
bool const needed_kdm = needs_kdm ();
@@ -248,9 +248,9 @@ DCPContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job)
if (job) {
job->set_progress_unknown ();
}
- Content::examine (film, job);
+ Content::examine(film, job, tolerant);
- auto examiner = make_shared<DCPExaminer>(shared_from_this(), film ? film->tolerant() : true);
+ auto examiner = make_shared<DCPExaminer>(shared_from_this(), tolerant);
if (examiner->has_video()) {
{