mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
context: keep the driver passive when we can
Only make the driver node active when we assign it an always_process node. Otherwise we can keep the driver passive until some other active nodes are added. Fixes a case where an need_driver node would automatically activate the driver, even when nothing is to be scheduled.
This commit is contained in:
parent
5547f9a1b9
commit
01b4c4fa64
1 changed files with 2 additions and 1 deletions
|
|
@ -1170,7 +1170,8 @@ again:
|
||||||
if (t == NULL)
|
if (t == NULL)
|
||||||
ensure_state(n, false);
|
ensure_state(n, false);
|
||||||
else {
|
else {
|
||||||
t->passive = false;
|
if (n->always_process)
|
||||||
|
t->passive = false;
|
||||||
collect_nodes(context, n);
|
collect_nodes(context, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue