Changeset 2763582 for src/spectral


Ignore:
Timestamp:
Sep 23, 2016, 12:06:45 AM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
12e91a6
Parents:
6e5dd2b
Message:

src/spectral/specdesc.c: return NULL if wrong mode asked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/spectral/specdesc.c

    r6e5dd2b r2763582  
    274274      onset_type = aubio_onset_default;
    275275  else {
    276       AUBIO_ERR("unknown spectral descriptor type %s, using default.\n", onset_mode);
    277       onset_type = aubio_onset_default;
     276      AUBIO_ERR("unknown spectral descriptor type %s\n", onset_mode);
     277      AUBIO_FREE(o);
     278      return NULL;
    278279  }
    279280  switch(onset_type) {
Note: See TracChangeset for help on using the changeset viewer.