mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
context: also set driver on inactive nodes that want one
Also set the driver on an inactive node when it wants a driver. Fixes the case where xjadeo does not activate itself but still wants to poll the transport state of the driver. See #1491
This commit is contained in:
parent
7fda66142b
commit
0e386b6584
1 changed files with 1 additions and 1 deletions
|
|
@ -1170,7 +1170,7 @@ again:
|
||||||
pw_log_debug(NAME" %p: unassigned node %p: '%s' active:%d want_driver:%d target:%p",
|
pw_log_debug(NAME" %p: unassigned node %p: '%s' active:%d want_driver:%d target:%p",
|
||||||
context, n, n->name, n->active, n->want_driver, target);
|
context, n, n->name, n->active, n->want_driver, target);
|
||||||
|
|
||||||
t = (n->active && n->want_driver) ? target : NULL;
|
t = n->want_driver ? target : NULL;
|
||||||
|
|
||||||
pw_impl_node_set_driver(n, t);
|
pw_impl_node_set_driver(n, t);
|
||||||
if (t == NULL)
|
if (t == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue