mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
00a82017a2
commit
9c834427c6
1 changed files with 1 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue