diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-06-01 13:03:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-06-07 17:01:06 +0200 |
| commit | 5a820bb8fae34591be5ac6d19a73461b9dab532a (patch) | |
| tree | 098e2dc959b6df0fefa62b2976976afc9f81b96b /src/lib/player.h | |
| parent | 9a7b67aee32a40539f29bc2d7017edd4a4f65f11 (diff) | |
Rearrange subtitle font management.
With this change each subtitle coming out of the player has a reference
to a dcpomatic::Font that belongs to the TextContent. This hopefully
solves a few problems which all basically stemmed from the fact that
previously the decoders/player were deciding what the font ID in the
output DCP would be - they can't do that properly.
Diffstat (limited to 'src/lib/player.h')
| -rw-r--r-- | src/lib/player.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/player.h b/src/lib/player.h index 7d99c22c6..694ee70b7 100644 --- a/src/lib/player.h +++ b/src/lib/player.h @@ -45,10 +45,6 @@ namespace dcp { class ReelAsset; } -namespace dcpomatic { - class FontData; -} - class AtmosContent; class AudioBuffers; class Content; @@ -84,7 +80,7 @@ public: bool pass (); void seek (dcpomatic::DCPTime time, bool accurate); - std::vector<dcpomatic::FontData> get_subtitle_fonts (); + std::vector<std::shared_ptr<dcpomatic::Font>> get_subtitle_fonts (); std::list<ReferencedReelAsset> get_reel_assets (); dcp::Size video_container_size () const { boost::mutex::scoped_lock lm (_mutex); |
