src/pitch/pitch.c: do not return NULL if unknown method selected (thanks to Olivier...
authorPaul Brossier <piem@piem.org>
Fri, 4 Feb 2011 09:08:42 +0000 (10:08 +0100)
committerPaul Brossier <piem@piem.org>
Fri, 4 Feb 2011 09:08:42 +0000 (10:08 +0100)
src/pitch/pitch.c

index 3861d0574a75415fad8afb88c6d060ed9bee1fa8..c568383142f3ae294ffd5c3378c98e245309e0d6 100644 (file)
@@ -133,7 +133,6 @@ new_aubio_pitch (char_t * pitch_mode,
     AUBIO_ERR ("unknown pitch detection method %s, using default.\n",
         pitch_mode);
     pitch_type = aubio_pitcht_default;
-    return NULL;
   }
   p->srate = samplerate;
   p->type = pitch_type;