diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-06 11:26:47 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-07 09:29:58 +0200 |
| commit | e5a65aba61329ee187fe2164cbd84c13cb93bda2 (patch) | |
| tree | 7681017d40d218ab22b88ad861bd5f1576173def /src/lib/content.cc | |
| parent | aba51f807ff3a6b58bfc92ccee900db015211cd3 (diff) | |
Add Content::full_length_content and make full_length_dcp use it.
Diffstat (limited to 'src/lib/content.cc')
| -rw-r--r-- | src/lib/content.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/content.cc b/src/lib/content.cc index 2dbb218a6..bcd4cabcc 100644 --- a/src/lib/content.cc +++ b/src/lib/content.cc @@ -541,3 +541,11 @@ Content::add_path (boost::filesystem::path p) auto last_write = boost::filesystem::last_write_time(p, ec); _last_write_times.push_back (ec ? 0 : last_write); } + + +DCPTime +Content::full_length_dcp (shared_ptr<const Film> film) const +{ + return DCPTime (full_length_content(), FrameRateChange(film, shared_from_this())); +} + |
