summaryrefslogtreecommitdiff
path: root/test/dcp_playback_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/dcp_playback_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/dcp_playback_test.cc')
-rw-r--r--test/dcp_playback_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dcp_playback_test.cc b/test/dcp_playback_test.cc
index 0e57acae4..66a735798 100644
--- a/test/dcp_playback_test.cc
+++ b/test/dcp_playback_test.cc
@@ -62,7 +62,7 @@ BOOST_AUTO_TEST_CASE (dcp_playback_test)
break;
}
/* assuming DCP is 24fps/48kHz */
- butler->get_audio (audio_buffer, 2000);
+ butler->get_audio (Butler::Behaviour::BLOCKING, audio_buffer, 2000);
p.first->image(bind(&PlayerVideo::force, _1, AV_PIX_FMT_RGB24), VideoRange::FULL, true);
}
delete[] audio_buffer;