Remove the need for ScreenKDM::collect.
[dcpomatic.git] / test / ffmpeg_decoder_sequential_test.cc
index 601dd1c59db7b4137f121d4e0507561d1a8d3b9d..767ea6727d35f6f7d512fc3822cce3088217857c 100644 (file)
  *  (dropped frames being checked by assert() in VideoDecoder).  Also that the decoder picks up frame rates correctly.
  */
 
-#include <boost/test/unit_test.hpp>
-#include <boost/filesystem.hpp>
 #include "lib/ffmpeg_content.h"
 #include "lib/ffmpeg_decoder.h"
-#include "lib/log.h"
+#include "lib/null_log.h"
 #include "lib/film.h"
 #include "test.h"
+#include <boost/filesystem.hpp>
+#include <boost/test/unit_test.hpp>
+#include <iostream>
 
 using std::cout;
 using std::cerr;
@@ -50,7 +51,7 @@ test (boost::filesystem::path file, float fps, int gaps)
        film->examine_and_add_content (content);
        wait_for_jobs ();
        shared_ptr<Log> log (new NullLog);
-       shared_ptr<FFmpegDecoder> decoder (new FFmpegDecoder (content, log));
+       shared_ptr<FFmpegDecoder> decoder (new FFmpegDecoder (content, log, false));
 
        BOOST_CHECK_CLOSE (decoder->video_content()->video_frame_rate(), fps, 0.01);
 
@@ -78,4 +79,3 @@ BOOST_AUTO_TEST_CASE (ffmpeg_decoder_sequential_test)
        */
        test ("prophet_clip.mkv", 23.976, 12);
 }
-