diff options
-rw-r--r-- | src/cubeb_audiounit.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/cubeb_audiounit.c b/src/cubeb_audiounit.c index 9fd46c4..f661a54 100644 --- a/src/cubeb_audiounit.c +++ b/src/cubeb_audiounit.c @@ -222,19 +222,14 @@ cubeb_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_n void cubeb_stream_destroy(cubeb_stream * stm) { - OSStatus r; + int r; stm->shutdown = 1; if (stm->unit) { - r = AudioOutputUnitStop(stm->unit); - assert(r == 0); - - r = AudioUnitUninitialize(stm->unit); - assert(r == 0); - - r = CloseComponent(stm->unit); - assert(r == 0); + AudioOutputUnitStop(stm->unit); + AudioUnitUninitialize(stm->unit); + CloseComponent(stm->unit); } r = pthread_mutex_destroy(&stm->mutex); |