Changeset 131d1eb for python/ext/py-source.c
- Timestamp:
- Dec 21, 2018, 8:06:09 PM (6 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
r4ed1e47 r131d1eb 437 437 aubio_source_do (self->o, &(self->c_read_to), &read); 438 438 439 if (PyErr_Occurred() != NULL) { 440 return NULL; 441 } 442 439 443 outputs = PyTuple_New(2); 440 444 PyTuple_SetItem( outputs, 0, self->read_to ); … … 457 461 /* compute _do function */ 458 462 aubio_source_do_multi (self->o, &(self->c_mread_to), &read); 463 464 if (PyErr_Occurred() != NULL) { 465 return NULL; 466 } 459 467 460 468 outputs = PyTuple_New(2); … … 574 582 } else if (PyLong_AsLong(size) > 0) { 575 583 // 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); 579 585 PyArray_Dims newdims; 580 586 PyObject *reshaped;
Note: See TracChangeset
for help on using the changeset viewer.