src/io/source_sndfile.c: fix typos
authorPaul Brossier <piem@piem.org>
Sun, 26 Jan 2014 19:35:46 +0000 (15:35 -0400)
committerPaul Brossier <piem@piem.org>
Sun, 26 Jan 2014 19:35:46 +0000 (15:35 -0400)
src/io/source_sndfile.c

index 6f08934..9076b48 100644 (file)
@@ -270,6 +270,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;
+  }
   if(sf_close(s->handle)) {
     AUBIO_ERR("Error closing file %s: %s", s->path, sf_strerror (NULL));
     return AUBIO_FAIL;
@@ -279,7 +280,7 @@ uint_t aubio_source_sndfile_close (aubio_source_sndfile_t *s) {
 
 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);