mirror of
https://github.com/larsimmisch/pyalsaaudio.git
synced 2026-04-16 16:15:31 +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);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (res > 0 ) {
|
||||
sizeout = res * self->framesize;
|
||||
else
|
||||
{
|
||||
sizeout = res * self->framesize;
|
||||
}
|
||||
}
|
||||
|
||||
if (size != sizeout) {
|
||||
|
||||
Reference in New Issue
Block a user