diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-01-17 23:46:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-01-17 23:46:26 +0100 |
| commit | af72285fcf35c7959d0770b3d42c5243f21fd4b2 (patch) | |
| tree | b93abeeca57256e595a2b3aa166e0bd142c843b9 /src/lib/film.cc | |
| parent | 7cb1677e10b9692698ede5741c50d8c4b4144ddf (diff) | |
Fix ISDCF name when referring to OVs with subs (#2703).
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index 27d23b185..0bba13e28 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -784,8 +784,10 @@ Film::subtitle_languages(bool* burnt_in) const pair<optional<dcp::LanguageTag>, vector<dcp::LanguageTag>> result; for (auto i: content()) { + auto dcp = dynamic_pointer_cast<DCPContent>(i); for (auto const& text: i->text) { - if (text->use() && text->type() == TextType::OPEN_SUBTITLE) { + auto const use = text->use() || (dcp && dcp->reference_text(TextType::OPEN_SUBTITLE)); + if (use && text->type() == TextType::OPEN_SUBTITLE) { if (!text->burn() && burnt_in) { *burnt_in = false; } |
