mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
audioadapter: stop when the follower needs data
This commit is contained in:
parent
c1f3593ef0
commit
2bb2e50eef
1 changed files with 4 additions and 1 deletions
|
|
@ -883,8 +883,11 @@ static int impl_node_process(void *object)
|
|||
status = spa_node_process(this->convert);
|
||||
if (status & (SPA_STATUS_HAVE_DATA | SPA_STATUS_DRAINED))
|
||||
break;
|
||||
if (status & SPA_STATUS_NEED_DATA)
|
||||
if (status & SPA_STATUS_NEED_DATA) {
|
||||
status = spa_node_process(this->follower);
|
||||
if (status & SPA_STATUS_NEED_DATA)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
spa_log_trace_fp(this->log, "%p: process status:%d", this, status);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue