Fix race between the Butler thread starting and audio (perhaps) being disabled.
[dcpomatic.git] / test / threed_test.cc
index b4599cf809fe1914625a0ac3de959920596ed4ba..4413ff01bcc737c7962da57abebb89c79e78dff7 100644 (file)
@@ -272,7 +272,9 @@ BOOST_AUTO_TEST_CASE (threed_test_butler_overfill)
 
        auto player = std::make_shared<Player>(film, Image::Alignment::COMPACT);
        int const audio_channels = 2;
-       auto butler = std::make_shared<Butler>(film, player, AudioMapping(), audio_channels, boost::bind(PlayerVideo::force, AV_PIX_FMT_RGB24), VideoRange::FULL, Image::Alignment::PADDED, true, false);
+       auto butler = std::make_shared<Butler>(
+               film, player, AudioMapping(), audio_channels, boost::bind(PlayerVideo::force, AV_PIX_FMT_RGB24), VideoRange::FULL, Image::Alignment::PADDED, true, false, Butler::Audio::ENABLED
+               );
 
        int const audio_frames = 1920;
        std::vector<float> audio(audio_frames * audio_channels);