Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / test / upmixer_a_test.cc
index 545f081bacaf2c40c8a8bac15f196bb264cfdf7d..a00a77addcde806b56eb985a7d7e3a165fbffc23 100644 (file)
@@ -79,7 +79,7 @@ BOOST_AUTO_TEST_CASE (upmixer_a_test)
        Ls = sf_open ("build/test/upmixer_a_test/Ls.wav", SFM_WRITE, &info);
        Rs = sf_open ("build/test/upmixer_a_test/Rs.wav", SFM_WRITE, &info);
 
-       shared_ptr<Player> player (new Player (film, film->playlist ()));
+       shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
        player->Audio.connect (bind (&write, _1, _2));
        while (!player->pass()) {}