alsa: small cleanup

We always try to write when we have data so we can make this code path
common.
This commit is contained in:
Wim Taymans 2023-09-08 12:19:52 +02:00
parent 00a82017a2
commit 9c834427c6

View file

@ -820,14 +820,9 @@ static int impl_node_process(void *object)
spa_list_append(&this->ready, &b->link);
SPA_FLAG_CLEAR(b->flags, BUFFER_FLAG_OUT);
io->buffer_id = SPA_ID_INVALID;
spa_alsa_write(this);
io->status = SPA_STATUS_OK;
}
else if (!spa_list_is_empty(&this->ready)) {
if (!spa_list_is_empty(&this->ready)) {
spa_alsa_write(this);
io->status = SPA_STATUS_OK;
}
return SPA_STATUS_HAVE_DATA;