Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / test / dcp_decoder_test.cc
index 32eed9354cfcd09c99e4bec11d61dd161fed3ecc..36df09834ad4f4c932ba65c8fa11736743e5c793 100644 (file)
@@ -89,7 +89,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        ov_content.reset (new DCPContent(ov->dir(ov->dcp_name(false))));
        test->examine_and_add_content (ov_content);
        BOOST_REQUIRE (!wait_for_jobs());
-       shared_ptr<Player> player (new Player(test, test->playlist()));
+       shared_ptr<Player> player (new Player(test, test->playlist(), test->length()));
 
        shared_ptr<DCPDecoder> decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
@@ -107,7 +107,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        shared_ptr<DCPContent> vf_content (new DCPContent(vf->dir(vf->dcp_name(false))));
        test->examine_and_add_content (vf_content);
        BOOST_REQUIRE (!wait_for_jobs());
-       player.reset (new Player(test, test->playlist()));
+       player.reset (new Player(test, test->playlist(), test->length()));
 
        decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);
@@ -125,7 +125,7 @@ BOOST_AUTO_TEST_CASE (check_reuse_old_data_test)
        shared_ptr<DCPContent> encrypted_content (new DCPContent(encrypted->dir(encrypted->dcp_name(false))));
        test->examine_and_add_content (encrypted_content);
        BOOST_REQUIRE (!wait_for_jobs());
-       player.reset (new Player(test, test->playlist()));
+       player.reset (new Player(test, test->playlist(), test->length()));
 
        decoder = boost::dynamic_pointer_cast<DCPDecoder>(player->_pieces.front()->decoder);
        BOOST_REQUIRE (decoder);