mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
audioadapter: fix switch between master and slave
When we get worken up with a callback, mark ourselves as a master because we then need to avoid running the converter again in the process callback. After we perform the process callback, unmark ourself as master and wait for the next cycle. This fixes switch from master to slave for sources.
This commit is contained in:
parent
2758a4555f
commit
566640a21b
1 changed files with 2 additions and 1 deletions
|
|
@ -851,8 +851,9 @@ static int impl_node_process(void *object)
|
|||
if (this->direction == SPA_DIRECTION_OUTPUT && !this->master) {
|
||||
if (this->use_converter)
|
||||
status = spa_node_process(this->convert);
|
||||
this->master = false;
|
||||
}
|
||||
this->master = false;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue