Ignore:
Timestamp:
Dec 21, 2018, 8:06:09 PM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/crepe, fix/ffmpeg5, master
Children:
1c565c0, 59109e9
Parents:
4ed1e47 (diff), a280ed1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into feature/sink_vorbis

File:
1 edited

Legend:

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

    r4ed1e47 r131d1eb  
    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);
     
    574582    } else if (PyLong_AsLong(size) > 0) {
    575583      // short read, return a shorter array
    576       PyArrayObject *shortread = (PyArrayObject*)
    577         PyArray_FROM_OTF(PyTuple_GetItem(done, 0), NPY_NOTYPE,
    578             NPY_ARRAY_ENSURECOPY);
     584      PyArrayObject *shortread = (PyArrayObject*)PyTuple_GetItem(done, 0);
    579585      PyArray_Dims newdims;
    580586      PyObject *reshaped;
Note: See TracChangeset for help on using the changeset viewer.