diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-15 16:17:01 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-15 16:17:01 +0200 |
| commit | 4219d4b76c5cd5690b1f4fa0c248d93ced26d05a (patch) | |
| tree | 6266573a3a26dd9f432d6bd096a2c6bbd85bf6c4 /test/dcp_decoder_test.cc | |
| parent | 39dcdd18487d5d1e20f0343fe617ed5bf44c1387 (diff) | |
Fix length of player output so it can be either the film's length or playlist's length, as appropriate.
Diffstat (limited to 'test/dcp_decoder_test.cc')
| -rw-r--r-- | test/dcp_decoder_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dcp_decoder_test.cc b/test/dcp_decoder_test.cc index 32eed9354..36df09834 100644 --- a/test/dcp_decoder_test.cc +++ b/test/dcp_decoder_test.cc @@ -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); |
