summaryrefslogtreecommitdiff
path: root/test/time_calculation_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-04-15 16:17:01 +0200
committerCarl Hetherington <cth@carlh.net>2020-04-15 16:17:01 +0200
commit4219d4b76c5cd5690b1f4fa0c248d93ced26d05a (patch)
tree6266573a3a26dd9f432d6bd096a2c6bbd85bf6c4 /test/time_calculation_test.cc
parent39dcdd18487d5d1e20f0343fe617ed5bf44c1387 (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/time_calculation_test.cc')
-rw-r--r--test/time_calculation_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/time_calculation_test.cc b/test/time_calculation_test.cc
index 968138f96..f6412d9de 100644
--- a/test/time_calculation_test.cc
+++ b/test/time_calculation_test.cc
@@ -190,7 +190,7 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test1)
film->set_sequence (false);
film->add_content (content);
- shared_ptr<Player> player (new Player (film, film->playlist ()));
+ shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
/* Position 0, no trim, content rate = DCP rate */
content->set_position (film, DCPTime());
@@ -396,7 +396,7 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test2)
film->set_sequence (false);
film->add_content (content);
- shared_ptr<Player> player (new Player (film, film->playlist ()));
+ shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
/* Position 0, no trim, content rate = DCP rate */
content->set_position (film, DCPTime());
@@ -573,7 +573,7 @@ BOOST_AUTO_TEST_CASE (player_time_calculation_test3)
film->set_sequence (false);
film->add_content (content);
- shared_ptr<Player> player (new Player (film, film->playlist ()));
+ shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
/* Position 0, no trim, video/audio content rate = video/audio DCP rate */
content->set_position (film, DCPTime());