summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-11 20:13:04 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-11 23:31:39 +0100
commiteb04ac87ccfa046dd342ca7b9e6478c3bdcabbba (patch)
tree8a939c134853fd01922c99cbda27b3cb9373459a /src
parent411b2d5a2633140b66de493c446d6c80df114e20 (diff)
Don't add a font with an empty ID for ccaps either (#2762).
Previously this was all changed so that for subs we add the default font in a cleaner way (in db22f81ccce9e1a5f205e6d8b3c0631fc039a173). I can't see why we shouldn't treat ccaps the same way, and indeed not doing it causes an error as shown by the included test.
Diffstat (limited to 'src')
-rw-r--r--src/lib/dcp_examiner.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc
index d9c904720..72eb82860 100644
--- a/src/lib/dcp_examiner.cc
+++ b/src/lib/dcp_examiner.cc
@@ -237,9 +237,6 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content, bool tolerant)
for (auto const& font: asset->font_data()) {
_fonts.push_back({reel_index, asset->id(), make_shared<dcpomatic::Font>(font.first, font.second)});
}
- if (asset->font_data().empty()) {
- _fonts.push_back({reel_index, asset->id(), make_shared<dcpomatic::Font>("")});
- }
}
}