Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / test / ffmpeg_decoder_sequential_test.cc
index cf841bcabcbd8d6343ee3334f0845fea2543fac4..041d976fe38cb74b35af8b465b48d8f0602a5b39 100644 (file)
@@ -65,7 +65,7 @@ ffmpeg_decoder_sequential_test_one (boost::filesystem::path file, float fps, int
        film->examine_and_add_content (content);
        BOOST_REQUIRE (!wait_for_jobs());
        film->write_metadata ();
-       shared_ptr<Player> player (new Player (film, film->playlist()));
+       shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
 
        BOOST_REQUIRE (content->video_frame_rate());
        BOOST_CHECK_CLOSE (content->video_frame_rate().get(), fps, 0.01);