Fix skip-frame.
[dcpomatic.git] / src / lib / player.cc
index 7d8add416132fe52f4bc59c9faf4b39099502ccf..7d53b07bfe104ce90c113958023087c1cb72d27a 100644 (file)
@@ -597,6 +597,11 @@ Player::video (weak_ptr<Piece> wp, ContentVideo video)
                return;
        }
 
+       FrameRateChange frc(piece->content->active_video_frame_rate(), _film->video_frame_rate());
+       if (frc.skip && (video.frame % 2) == 1) {
+               return;
+       }
+
        /* Time and period of the frame we will emit */
        DCPTime const time = content_video_to_dcp (piece, video.frame);
        DCPTimePeriod const period (time, time + DCPTime::from_frames (1, _film->video_frame_rate()));