summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-11 01:01:36 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-11 22:54:06 +0200
commitd8f671167eb15cccf8cdad817cecd8086b4091da (patch)
tree9b714dfe91bbe61e1d41e856c9a462e10aaff228 /src
parentf0de76caf400db21137c711fcc1c2dcbe4614838 (diff)
Don't try to add unused fonts to the DCP (#3059).
With interop there can be only one font, and we need to make sure it's not one that isn't even being used.
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index ef6280a3a..53ce612e1 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -606,8 +606,10 @@ Player::get_subtitle_fonts()
vector<shared_ptr<Font>> fonts;
for (auto piece: _pieces) {
for (auto text: piece->content->text) {
- auto text_fonts = text->fonts();
- copy(text_fonts.begin(), text_fonts.end(), back_inserter(fonts));
+ if (text->use()) {
+ auto text_fonts = text->fonts();
+ copy(text_fonts.begin(), text_fonts.end(), back_inserter(fonts));
+ }
}
}