diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-14 10:51:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-14 23:51:12 +0100 |
| commit | 3433dfa45f15e40ed9d5f5d17045f02bb6fd01ce (patch) | |
| tree | 4badeb29e90ca28ca586baf39a2039db99e9c4ef /src/lib/film.cc | |
| parent | faa7efd869e11c6e0ec4f00da8e1ad99415c709b (diff) | |
Extract dcpomatic::film::is_vf().
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 6c5aa0cbb..e2df95e32 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -46,6 +46,7 @@ #include "ffmpeg_subtitle_stream.h" #include "file_log.h" #include "film.h" +#include "film_util.h" #include "font.h" #include "job.h" #include "job_manager.h" @@ -1108,25 +1109,7 @@ Film::isdcf_name (bool if_created_now) const isdcf_name += "-3D"; } - auto vf = false; - for (auto content: content_list) { - auto dcp = dynamic_pointer_cast<const DCPContent>(content); - if (!dcp) { - continue; - } - - bool any_text = false; - for (int i = 0; i < static_cast<int>(TextType::COUNT); ++i) { - if (dcp->reference_text(static_cast<TextType>(i))) { - any_text = true; - } - } - if (dcp->reference_video() || dcp->reference_audio() || any_text) { - vf = true; - } - } - - if (vf) { + if (dcpomatic::film::is_vf(shared_from_this())) { isdcf_name += "_VF"; } else { isdcf_name += "_OV"; |
