Fix check for overlap to be less greedy.
authorCarl Hetherington <cth@carlh.net>
Thu, 18 Jun 2015 14:34:43 +0000 (15:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 18 Jun 2015 14:34:43 +0000 (15:34 +0100)
src/lib/player.cc

index 56e2d2749179b5fab685b8d28e82e97af1bd2835..ac41cc7b35ca7aa815900ac23a2d0b113483f9db 100644 (file)
@@ -324,7 +324,7 @@ Player::get_video (DCPTime time, bool accurate)
 
        list<shared_ptr<Piece> > ov = overlaps<VideoContent> (
                time,
-               time + DCPTime::from_frames (1, _film->video_frame_rate ())
+               time + DCPTime::from_frames (1, _film->video_frame_rate ()) - DCPTime::delta()
                );
 
        list<shared_ptr<PlayerVideo> > pvf;