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:
Wim Taymans 2021-08-09 10:50:07 +02:00
parent 7fda66142b
commit 0e386b6584

View file

@ -1170,7 +1170,7 @@ again:
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);
t = (n->active && n->want_driver) ? target : NULL;
t = n->want_driver ? target : NULL;
pw_impl_node_set_driver(n, t);
if (t == NULL)