Always block waiting for audio when exporting.
[dcpomatic.git] / test / butler_test.cc
index e577793342e30c9835871cc5eb5dc78f1d062273..3d524a3b258382d98f82786224fae38a69793eb2 100644 (file)
@@ -67,7 +67,7 @@ BOOST_AUTO_TEST_CASE (butler_test1)
        /* XXX: check the frame contents */
 
        float buffer[256 * 6];
-       BOOST_REQUIRE (butler.get_audio(buffer, 256) == DCPTime());
+       BOOST_REQUIRE (butler.get_audio(Butler::Behaviour::BLOCKING, buffer, 256) == DCPTime());
        for (int i = 0; i < 256; ++i) {
                BOOST_REQUIRE_EQUAL (buffer[i * 6 + 0], 0);
                BOOST_REQUIRE_EQUAL (buffer[i * 6 + 1], 0);