diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-05-26 20:04:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-05-26 20:04:33 +0200 |
| commit | 8987f133295e352c44e05ef338eacc801c61a629 (patch) | |
| tree | 6325c00b2c1097bb483568ddad8b545e0e40f717 /test/dcp_playback_test.cc | |
| parent | b6fb82e5df5551497b823f20a75c7ff94ffd1b3e (diff) | |
Fix race between the Butler thread starting and audio (perhaps) being disabled.
This could cause Butler::audio to be called with _audio_channels = 0
and _disable_audio = false, causing an exception in AudioBuffers when
remap() tried to make an AudioBuffers object with a channel count of 0.
Diffstat (limited to 'test/dcp_playback_test.cc')
| -rw-r--r-- | test/dcp_playback_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dcp_playback_test.cc b/test/dcp_playback_test.cc index 4cdb9f897..62c72cc84 100644 --- a/test/dcp_playback_test.cc +++ b/test/dcp_playback_test.cc @@ -52,7 +52,8 @@ BOOST_AUTO_TEST_CASE (dcp_playback_test) VideoRange::FULL, Image::Alignment::PADDED, true, - false + false, + Butler::Audio::ENABLED ); std::vector<float> audio_buffer(2000 * 6); |
