mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
node: we are supposed to produce data when != HAVE_DATA
We can produce data whenever the io area status != HAVE_DATA. We don't need to look for NEED_DATA. Also recycling buffer happens whenever the status != HAVE_DATA.
This commit is contained in:
parent
f9d6a42f63
commit
50ce87df32
6 changed files with 6 additions and 7 deletions
|
|
@ -425,7 +425,7 @@ static int process_recycle(struct seq_state *state)
|
|||
if (!port->valid || io == NULL)
|
||||
continue;
|
||||
|
||||
if (io->status == SPA_STATUS_NEED_DATA &&
|
||||
if (io->status != SPA_STATUS_HAVE_DATA &&
|
||||
io->buffer_id < port->n_buffers) {
|
||||
spa_alsa_seq_recycle_buffer(state, port, io->buffer_id);
|
||||
io->buffer_id = SPA_ID_INVALID;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue