shithub: aubio

Download patch

ref: c038740f22f0ea8a6dfea5e4e7baafb1ed14329b
parent: 3cc3fd8aea4704bf71e66226d55c99399fd9513a
author: Paul Brossier <piem@piem.org>
date: Sun Jan 26 10:35:46 EST 2014

src/io/source_sndfile.c: fix typos

--- a/src/io/source_sndfile.c
+++ b/src/io/source_sndfile.c
@@ -270,6 +270,7 @@
 uint_t aubio_source_sndfile_close (aubio_source_sndfile_t *s) {
   if (!s->handle) {
     return AUBIO_FAIL;
+  }
   if(sf_close(s->handle)) {
     AUBIO_ERR("Error closing file %s: %s", s->path, sf_strerror (NULL));
     return AUBIO_FAIL;
@@ -279,7 +280,7 @@
 
 void del_aubio_source_sndfile(aubio_source_sndfile_t * s){
   if (!s) return;
-  aubio_source_sndfile_close(s):
+  aubio_source_sndfile_close(s);
 #ifdef HAVE_SAMPLERATE
   if (s->resampler != NULL) {
     del_aubio_resampler(s->resampler);