Fix non-debug build.
authorCarl Hetherington <cth@carlh.net>
Tue, 20 May 2014 19:35:39 +0000 (20:35 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 20 May 2014 19:35:39 +0000 (20:35 +0100)
test/ffmpeg_decoder_sequential_test.cc

index b4ff36e6eed0848624fcd8aabb019023252f056b..9a14c5adbdb1695a5ef890b5c41bfb637361e315 100644 (file)
@@ -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<ContentVideo> 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)