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 3861d05..c568383 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;