From 59c2b819fd6fd98a86145ebbb1b00fe0aa282b73 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 20 May 2014 20:35:39 +0100 Subject: [PATCH] Fix non-debug build. --- test/ffmpeg_decoder_sequential_test.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ffmpeg_decoder_sequential_test.cc b/test/ffmpeg_decoder_sequential_test.cc index b4ff36e6e..9a14c5adb 100644 --- a/test/ffmpeg_decoder_sequential_test.cc +++ b/test/ffmpeg_decoder_sequential_test.cc @@ -56,7 +56,9 @@ test (boost::filesystem::path file, float fps, int first) BOOST_CHECK_CLOSE (decoder.video_content()->video_frame_rate(), fps, 0.01); VideoFrame const N = decoder.video_content()->video_length().frames (decoder.video_content()->video_frame_rate ()); +#ifdef DCPOMATIC_DEBUG decoder.test_gaps = 0; +#endif for (VideoFrame i = 0; i < N; ++i) { list v; v = decoder.get_video (i, true); @@ -67,7 +69,9 @@ test (boost::filesystem::path file, float fps, int first) BOOST_CHECK_EQUAL (v.front().frame, i); } } +#ifdef DCPOMATIC_DEBUG BOOST_CHECK_EQUAL (decoder.test_gaps, 0); +#endif } BOOST_AUTO_TEST_CASE (ffmpeg_decoder_sequential_test) -- 2.30.2