Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / test / vf_test.cc
index 8cbf7a3457da5cb74e57a1b82cab60e19d70ef70..35c32e603f4e1eba37fd3487dce9306087ee76a6 100644 (file)
@@ -287,7 +287,7 @@ BOOST_AUTO_TEST_CASE (vf_test5)
        BOOST_REQUIRE (!wait_for_jobs());
 
        /* Check that the selected reel assets are right */
-       shared_ptr<Player> player (new Player(vf, vf->playlist()));
+       shared_ptr<Player> player (new Player(vf, vf->playlist(), vf->length()));
        list<ReferencedReelAsset> a = player->get_reel_assets();
        BOOST_REQUIRE_EQUAL (a.size(), 4);
        list<ReferencedReelAsset>::const_iterator i = a.begin();