Changeset 3f512b8


Ignore:
Timestamp:
Feb 8, 2017, 11:58:16 AM (3 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.