Changeset 519d5d3


Ignore:
Timestamp:
Dec 21, 2018, 4:41:30 PM (12 months ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/timestretch, 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.