ref: 48ebc3b6409d2e9c9587189cfcf75d123249a08b
parent: 2882b3f907a0b27ce880f4ba4a79ce93a57d2856
author: Paul Brossier <piem@piem.org>
date: Sun Feb 26 20:34:10 EST 2017
src/io/source_sndfile.c: allow closing twice
--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -320,7 +320,7 @@
uint_t aubio_source_sndfile_close (aubio_source_sndfile_t *s) {
if (!s->handle) {
- return AUBIO_FAIL;
+ return AUBIO_OK;
}
if(sf_close(s->handle)) {
AUBIO_ERR("source_sndfile: Error closing file %s: %s\n", s->path, sf_strerror (NULL));