diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-07-21 15:16:18 +0100 |
| commit | cbd4450197a083bf58bda510e626f73ba583cb66 (patch) | |
| tree | 2be308772512539570beab36beab02bde72d6d4b /src/lib/hints.cc | |
| parent | 1013175d5f6adfa0e6a7442e4c9aebb893787748 (diff) | |
Basics of multiple captions per content so that DCPContent can
hold subs and closed captions.
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index eb3ea1d02..33c2faba5 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -56,10 +56,10 @@ get_hints (shared_ptr<const Film> film) bool big_font_files = false; if (film->interop ()) { BOOST_FOREACH (shared_ptr<Content> i, content) { - if (i->caption) { - BOOST_FOREACH (shared_ptr<Font> j, i->caption->fonts ()) { - for (int k = 0; k < FontFiles::VARIANTS; ++k) { - optional<boost::filesystem::path> const p = j->file (static_cast<FontFiles::Variant> (k)); + BOOST_FOREACH (shared_ptr<CaptionContent> j, i->caption) { + BOOST_FOREACH (shared_ptr<Font> k, j->fonts()) { + for (int l = 0; l < FontFiles::VARIANTS; ++l) { + optional<boost::filesystem::path> const p = k->file (static_cast<FontFiles::Variant>(l)); if (p && boost::filesystem::file_size (p.get()) >= (640 * 1024)) { big_font_files = true; } |
