Changeset 48105ca


Ignore:
Timestamp:
Dec 21, 2018, 2:58:39 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:
98d7aaa
Parents:
776d65b
Message:

Revert "[py] avoid resizing py-source output"

This reverts commit 8e76c71be6136f4e2289f8c67e422097f5e10dfe.

No need to copy here, the culprit should be in py-sink.c.

File:
1 edited

Legend:

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

    r776d65b r48105ca  
    574574    } else if (PyLong_AsLong(size) > 0) {
    575575      // short read, return a shorter array
    576       PyArrayObject *shortread = (PyArrayObject*)
    577         PyArray_FROM_OTF(PyTuple_GetItem(done, 0), NPY_NOTYPE,
    578             NPY_ARRAY_ENSURECOPY);
     576      PyArrayObject *shortread = (PyArrayObject*)PyTuple_GetItem(done, 0);
    579577      PyArray_Dims newdims;
    580578      PyObject *reshaped;
Note: See TracChangeset for help on using the changeset viewer.