Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -289,7 +289,7 @@ static PyObject* Pyaubio_source_iter(PyObject *self) { · 288 unmodified lines | ||
| 289 | 289 | } |
| 290 | 290 | |
| 291 | 291 | static PyObject* Pyaubio_source_iter_next(Py_source *self) { |
| 292 | − PyObject *done; | |
| 292 | + PyObject *done, *size; | |
| 293 | 293 | if (self->channels == 1) { |
| 294 | 294 | done = Py_source_do(self, NULL); |
| 295 | 295 | } else { |
| @@ -300,7 +300,7 @@ static PyObject* Pyaubio_source_iter_next(Py_source *self) { · 4 unmodified lines | ||
| 300 | 300 | "error when reading source: not opened?"); |
| 301 | 301 | return NULL; |
| 302 | 302 | } |
| 303 | − PyObject *size = PyTuple_GetItem(done, 1); | |
| 303 | + size = PyTuple_GetItem(done, 1); | |
| 304 | 304 | if (size != NULL && PyLong_Check(size)) { |
| 305 | 305 | if (PyLong_AsLong(size) == (long)self->hop_size) { |
| 306 | 306 | PyObject *vec = PyTuple_GetItem(done, 0); |