Changeset 519d5d3 for python/ext


Ignore:
Timestamp:
Dec 21, 2018, 4:41:30 PM (6 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/timestretch, fix/ffmpeg5, master
Children:
4b16721
Parents:
fc633f3
Message:

[py] raise an exception when reading source failed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/ext/py-source.c

    rfc633f3 r519d5d3  
    437437  aubio_source_do (self->o, &(self->c_read_to), &read);
    438438
     439  if (PyErr_Occurred() != NULL) {
     440    return NULL;
     441  }
     442
    439443  outputs = PyTuple_New(2);
    440444  PyTuple_SetItem( outputs, 0, self->read_to );
     
    457461  /* compute _do function */
    458462  aubio_source_do_multi (self->o, &(self->c_mread_to), &read);
     463
     464  if (PyErr_Occurred() != NULL) {
     465    return NULL;
     466  }
    459467
    460468  outputs = PyTuple_New(2);
Note: See TracChangeset for help on using the changeset viewer.