No-op: remove all trailing whitespace.
[dcpomatic.git] / test / ffmpeg_decoder_sequential_test.cc
index cf1fb818958ff4f9c34c7e4adf6525f54a7d7b97..601dd1c59db7b4137f121d4e0507561d1a8d3b9d 100644 (file)
@@ -46,26 +46,26 @@ test (boost::filesystem::path file, float fps, int gaps)
        }
 
        shared_ptr<Film> film = new_test_film ("ffmpeg_decoder_seek_test_" + file.string());
-       shared_ptr<FFmpegContent> content (new FFmpegContent (film, path)); 
-       film->examine_and_add_content (content, true);
+       shared_ptr<FFmpegContent> content (new FFmpegContent (film, path));
+       film->examine_and_add_content (content);
        wait_for_jobs ();
        shared_ptr<Log> log (new NullLog);
-       FFmpegDecoder decoder (content, log);
+       shared_ptr<FFmpegDecoder> decoder (new FFmpegDecoder (content, log));
 
-       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) {
+       BOOST_CHECK_CLOSE (decoder->video_content()->video_frame_rate(), fps, 0.01);
+
+       Frame const N = decoder->video_content()->video_length();
+#ifdef DCPOMATIC_DEBUG
+       decoder->test_gaps = 0;
+#endif
+       for (Frame i = 0; i < N; ++i) {
                list<ContentVideo> v;
-               v = decoder.get_video (i, true);
-               BOOST_CHECK_EQUAL (v.size(), 1);
+               v = decoder->get_video (i, true);
+               BOOST_CHECK_EQUAL (v.size(), 1U);
                BOOST_CHECK_EQUAL (v.front().frame, i);
        }
-#ifdef DCPOMATIC_DEBUG 
-       BOOST_CHECK_EQUAL (decoder.test_gaps, gaps);
+#ifdef DCPOMATIC_DEBUG
+       BOOST_CHECK_EQUAL (decoder->test_gaps, gaps);
 #endif
 }