summaryrefslogtreecommitdiff
path: root/test/butler_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-15 22:33:46 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-16 10:13:26 +0200
commitc8fa584045ad65283a85015f18ee8789ddf881d1 (patch)
tree9887fe131c628a27555afcf705c565ba91ad9c16 /test/butler_test.cc
parent0e896f9f37db001f34c876ed5fc50e874f96ae09 (diff)
Always block waiting for audio when exporting.v2.15.169
Otherwise if there is non available we'll insert silence and potentially push the audio out of sync (late). May help with #2098.
Diffstat (limited to 'test/butler_test.cc')
-rw-r--r--test/butler_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/butler_test.cc b/test/butler_test.cc
index e57779334..3d524a3b2 100644
--- a/test/butler_test.cc
+++ b/test/butler_test.cc
@@ -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);