diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-08-05 01:15:45 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-08-05 01:15:45 +0100 |
| commit | 3a7b6acdb993864f319a6ceb3bc4c3fb7d4aaefd (patch) | |
| tree | 6f516185b6155b13cddfcd6be8fdf9e5bc52f86a /src/lib/player.cc | |
| parent | 7c45c2c7b0904446bbc8cd175fe1deab54c61c15 (diff) | |
Get closed caption view data from the butler, rather than the player.
You can't introduce the butler (so that the player is ahead of time)
and then ask the player what should be in the frame that is being
displayed "now"; the player will already have moved on.
Diffstat (limited to 'src/lib/player.cc')
| -rw-r--r-- | src/lib/player.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 68b3365ea..c1a6c0f3c 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -724,15 +724,6 @@ Player::pass () return done; } -list<PlayerText> -Player::closed_captions_for_frame (DCPTime time) const -{ - boost::mutex::scoped_lock _lm (_mutex); - return _active_texts[TEXT_CLOSED_CAPTION].get ( - DCPTimePeriod(time, time + DCPTime::from_frames(1, _film->video_frame_rate())) - ); -} - /** @return Open subtitles for the frame at the given time, converted to images */ optional<PositionImage> Player::open_subtitles_for_frame (DCPTime time) const |
