From c82a03488a71f8c4f9373a393157fa785df37149 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Tue, 26 May 2015 11:19:44 +0200 Subject: [PATCH] tests/src/io/test-source.c: call aubio_source_close twice --- tests/src/io/test-source.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/io/test-source.c b/tests/src/io/test-source.c index 6d3e48f4..ae1e2016 100644 --- a/tests/src/io/test-source.c +++ b/tests/src/io/test-source.c @@ -44,6 +44,11 @@ int main (int argc, char **argv) PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate, n_frames / hop_size, source_path); + // close the file (optional) + aubio_source_close(s); + // test closing the file a second time + aubio_source_close(s); + del_fvec (vec); del_aubio_source (s); beach: -- 2.11.0