Fix length of player output so it can be either the film's length or playlist's lengt...
[dcpomatic.git] / test / ffmpeg_audio_only_test.cc
index a8a7184c4e264883b7de730afec4adc3cc4c073c..df32cadd49e89da85cf4af378d7e1f5b9cd3141b 100644 (file)
@@ -92,7 +92,7 @@ test (boost::filesystem::path file)
        ref_buffer_size = info.samplerate * info.channels;
        ref_buffer = new float[ref_buffer_size];
 
-       shared_ptr<Player> player (new Player (film, film->playlist ()));
+       shared_ptr<Player> player (new Player(film, film->playlist(), film->length()));
 
        player->Audio.connect (bind (&audio, _1, info.channels));
        while (!player->pass ()) {}