summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-28 00:12:09 +0100
committerCarl Hetherington <cth@carlh.net>2026-02-16 01:20:17 +0100
commit86c169fa6cc97f2e627e281b9cd75429f4eeb670 (patch)
treed5a89c303f813deeef52bfb3c3a33857986a3ba7 /src/lib/dcp_content.cc
parenta7a3f17e003bab57967e502b35e2f1b689a7f1cb (diff)
Remove Film from the whole examination chain.
Diffstat (limited to 'src/lib/dcp_content.cc')
-rw-r--r--src/lib/dcp_content.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index 02454fdda..6e071e5c0 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -241,9 +241,8 @@ 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, bool tolerant)
+DCPContent::examine(shared_ptr<Job> job, bool tolerant)
{
bool const needed_assets = needs_assets();
bool const needed_kdm = needs_kdm();
@@ -262,7 +261,7 @@ DCPContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bool toler
if (job) {
job->set_progress_unknown();
}
- Content::examine(film, job, tolerant);
+ Content::examine(job, tolerant);
auto examiner = make_shared<DCPExaminer>(shared_from_this(), tolerant);
@@ -276,11 +275,8 @@ DCPContent::examine(shared_ptr<const Film> film, shared_ptr<Job> job, bool toler
}
if (examiner->has_audio()) {
- {
- boost::mutex::scoped_lock lm(_mutex);
- audio = make_shared<AudioContent>(this);
- }
-
+ boost::mutex::scoped_lock lm(_mutex);
+ audio = make_shared<AudioContent>(this);
audio->set_stream(
make_shared<AudioStream>(examiner->audio_frame_rate(), examiner->audio_length(), examiner->audio_channels(), 24)
);