mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-15 08:56:38 -05: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);
|
status = spa_node_process(this->convert);
|
||||||
if (status & (SPA_STATUS_HAVE_DATA | SPA_STATUS_DRAINED))
|
if (status & (SPA_STATUS_HAVE_DATA | SPA_STATUS_DRAINED))
|
||||||
break;
|
break;
|
||||||
if (status & SPA_STATUS_NEED_DATA)
|
if (status & SPA_STATUS_NEED_DATA) {
|
||||||
status = spa_node_process(this->follower);
|
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);
|
spa_log_trace_fp(this->log, "%p: process status:%d", this, status);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue