Changeset 3f512b8


Ignore:
Timestamp:
Feb 8, 2017, 11:58:16 AM (7 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, sampler
Children:
0f425aa
Parents:
f98063b
Message:

src/pitch/pitch.c: return NULL if pitch_mode is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/pitch/pitch.c

    rf98063b r3f512b8  
    112112  aubio_pitch_t *p = AUBIO_NEW (aubio_pitch_t);
    113113  aubio_pitch_type pitch_type;
     114  if (pitch_mode == NULL) {
     115    AUBIO_ERR ("pitch: can not use ‘NULL‘ for pitch detection method\n");
     116    goto beach;
     117  }
    114118  if (strcmp (pitch_mode, "mcomb") == 0)
    115119    pitch_type = aubio_pitcht_mcomb;
Note: See TracChangeset for help on using the changeset viewer.