ref: 25d58dc6aeb217a0bc7668613143db734052a929
parent: 48ebc3b6409d2e9c9587189cfcf75d123249a08b
author: Paul Brossier <piem@piem.org>
date: Sun Feb 26 20:34:45 EST 2017
src/io/source_apple_audio.c: allow closing twice
--- a/src/io/source_apple_audio.c
+++ b/src/io/source_apple_audio.c
@@ -279,7 +279,7 @@
uint_t aubio_source_apple_audio_close (aubio_source_apple_audio_t *s)
{
OSStatus err = noErr;
- if (!s->audioFile) { return AUBIO_FAIL; }
+ if (!s->audioFile) { return AUBIO_OK; }
err = ExtAudioFileDispose(s->audioFile);
s->audioFile = NULL;
if (err) {