aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_audiounit.cpp
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2018-10-23 12:29:41 +0200
committerMatthew Gregan <[email protected]>2018-10-24 08:43:52 +1300
commit04d58b66057171d25413498b3a4d0607fd500bb8 (patch)
treee63f762d36747cbfe0d3024c02ff374d5126ebcc /src/cubeb_audiounit.cpp
parent262aea3075be784819785c2d35fb28290624a64f (diff)
downloadcubeb-04d58b66057171d25413498b3a4d0607fd500bb8.tar.gz
cubeb-04d58b66057171d25413498b3a4d0607fd500bb8.zip
osx: close the stream before calling setup (BMO 1500109)
Diffstat (limited to 'src/cubeb_audiounit.cpp')
-rw-r--r--src/cubeb_audiounit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cubeb_audiounit.cpp b/src/cubeb_audiounit.cpp
index 528778a..6a88eed 100644
--- a/src/cubeb_audiounit.cpp
+++ b/src/cubeb_audiounit.cpp
@@ -839,6 +839,7 @@ audiounit_reinit_stream(cubeb_stream * stm, device_flags_value flags)
if (flags & DEV_INPUT && input_device != 0) {
// Attempt to re-use the same device-id failed, so attempt again with
// default input device.
+ audiounit_close_stream(stm);
if (audiounit_set_device_info(stm, 0, io_side::INPUT) != CUBEB_OK ||
audiounit_setup_stream(stm) != CUBEB_OK) {
LOG("(%p) Second stream reinit failed.", stm);