From 48ebc3b6409d2e9c9587189cfcf75d123249a08b Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 27 Feb 2017 01:34:10 +0100 Subject: [PATCH] src/io/source_sndfile.c: allow closing twice --- src/io/source_sndfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/source_sndfile.c b/src/io/source_sndfile.c index 4c830bad..eea2ffce 100644 --- a/src/io/source_sndfile.c +++ b/src/io/source_sndfile.c @@ -320,7 +320,7 @@ uint_t aubio_source_sndfile_seek (aubio_source_sndfile_t * s, uint_t pos) { 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)); -- 2.11.0