summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-02-23 01:21:12 +0000
committerCarl Hetherington <cth@carlh.net>2018-02-23 01:21:22 +0000
commitb20ad09b6645c1fdd8b5ed36797208af9409da1b (patch)
treec8ca93641ea2046adc09e2cf4f1102fb017140e9 /src
parent24ba224ab4871e453df50fde94b5b32649a3d47b (diff)
Fix thinko in previous.
Diffstat (limited to 'src')
-rw-r--r--src/lib/player.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc
index 87a294042..6b858ed2c 100644
--- a/src/lib/player.cc
+++ b/src/lib/player.cc
@@ -983,7 +983,14 @@ Player::emit_video (shared_ptr<PlayerVideo> pv, DCPTime time)
player before the video that requires them.
*/
_delay.push_back (make_pair (pv, time));
- if (_delay.size() < 2) {
+
+ if (pv->eyes() == EYES_BOTH || pv->eyes() == EYES_RIGHT) {
+ _last_video_time = time + one_video_frame();
+ _active_subtitles.clear_before (time);
+ }
+ _last_video_eyes = increment_eyes (pv->eyes());
+
+ if (_delay.size() < 3) {
return;
}
@@ -1001,12 +1008,6 @@ Player::do_emit_video (shared_ptr<PlayerVideo> pv, DCPTime time)
}
Video (pv, time);
-
- if (pv->eyes() == EYES_BOTH || pv->eyes() == EYES_RIGHT) {
- _last_video_time = time + one_video_frame();
- _active_subtitles.clear_before (time);
- }
- _last_video_eyes = increment_eyes (pv->eyes());
}
void