diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-11-21 01:59:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-11-21 01:59:04 +0000 |
| commit | 254b3044d72de6b033d7c584f5abd2b9aa70aad5 (patch) | |
| tree | 8a5c83c1b2dea690672663dedb2f3aa50f4473dc /src/lib/atmos_mxf_content.cc | |
| parent | c31b9542c58ae1cbfae7ec3ba4911359fd010ba2 (diff) | |
Take Film pointer out of Content.
Diffstat (limited to 'src/lib/atmos_mxf_content.cc')
| -rw-r--r-- | src/lib/atmos_mxf_content.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/atmos_mxf_content.cc b/src/lib/atmos_mxf_content.cc index a42b10954..8300c2cd6 100644 --- a/src/lib/atmos_mxf_content.cc +++ b/src/lib/atmos_mxf_content.cc @@ -33,14 +33,14 @@ using std::list; using std::string; using boost::shared_ptr; -AtmosMXFContent::AtmosMXFContent (shared_ptr<const Film> film, boost::filesystem::path path) - : Content (film, path) +AtmosMXFContent::AtmosMXFContent (boost::filesystem::path path) + : Content (path) { } -AtmosMXFContent::AtmosMXFContent (shared_ptr<const Film> film, cxml::ConstNodePtr node, int) - : Content (film, node) +AtmosMXFContent::AtmosMXFContent (cxml::ConstNodePtr node, int) + : Content (node) { } @@ -65,10 +65,10 @@ AtmosMXFContent::valid_mxf (boost::filesystem::path path) } void -AtmosMXFContent::examine (shared_ptr<Job> job) +AtmosMXFContent::examine (shared_ptr<const Film> film, shared_ptr<Job> job) { job->set_progress_unknown (); - Content::examine (job); + Content::examine (film, job); shared_ptr<dcp::AtmosAsset> a (new dcp::AtmosAsset (path(0))); { @@ -91,8 +91,8 @@ AtmosMXFContent::as_xml (xmlpp::Node* node, bool with_paths) const } DCPTime -AtmosMXFContent::full_length () const +AtmosMXFContent::full_length (shared_ptr<const Film> film) const { - FrameRateChange const frc (active_video_frame_rate(), film()->video_frame_rate()); - return DCPTime::from_frames (llrint (_length * frc.factor()), film()->video_frame_rate()); + FrameRateChange const frc (active_video_frame_rate(film), film->video_frame_rate()); + return DCPTime::from_frames (llrint (_length * frc.factor()), film->video_frame_rate()); } |
