mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-18 00:46:29 +00:00
make alsapcm_read()'s return value preparation clearer
... by nesting the success case into the != -EPIPE block.
This commit is contained in:
committed by
Lars Immisch
parent
1c730123eb
commit
16345a139a
@@ -1385,10 +1385,10 @@ alsapcm_read(alsapcm_t *self, PyObject *args)
|
|||||||
Py_DECREF(buffer_obj);
|
Py_DECREF(buffer_obj);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
if (res > 0 ) {
|
sizeout = res * self->framesize;
|
||||||
sizeout = res * self->framesize;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size != sizeout) {
|
if (size != sizeout) {
|
||||||
|
|||||||
Reference in New Issue
Block a user