From 3a7b6acdb993864f319a6ceb3bc4c3fb7d4aaefd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 5 Aug 2018 01:15:45 +0100 Subject: 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. --- src/lib/player.cc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/lib/player.cc') 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 -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 Player::open_subtitles_for_frame (DCPTime time) const -- cgit v1.2.3