From: Paul Brossier Date: Mon, 18 Mar 2013 15:47:13 +0000 (-0500) Subject: src/io/sink_apple_audio.c: print an error if del_aubio_sink_apple_audio failed X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=93e34637b3c0f591e779b0a31d88a02859489dc7;p=aubio.git src/io/sink_apple_audio.c: print an error if del_aubio_sink_apple_audio failed --- diff --git a/src/io/sink_apple_audio.c b/src/io/sink_apple_audio.c index c1d2e03f..b3e4aa36 100644 --- a/src/io/sink_apple_audio.c +++ b/src/io/sink_apple_audio.c @@ -122,7 +122,10 @@ void aubio_sink_apple_audio_do(aubio_sink_apple_audio_t * s, fvec_t * write_data void del_aubio_sink_apple_audio(aubio_sink_apple_audio_t * s) { OSStatus err = noErr; - if (!s || !s->audioFile) { return; } + if (!s || !s->audioFile) { + AUBIO_ERR("failed erasing sink_apple_audio\n"); + return; + } err = ExtAudioFileDispose(s->audioFile); if (err) AUBIO_ERROR("error in ExtAudioFileDispose, %d\n", (int)err); s->audioFile = NULL;