context: Also add driver to always_process inactive nodes

Commit 90b11e3c49 removed inactive
node from the fallback driver, even if it was always_process.

This should not happen, always_process nodes should stay on a driver in
all cases.

JACK nodes are marked like this and need to stay on the driver even when
inactive or else they don't have a transport when inactive.

Fixes #3189
This commit is contained in:
Wim Taymans 2023-05-09 10:11:51 +02:00
parent 67df9d2251
commit 171e2a99ba

View file

@ -1268,7 +1268,8 @@ again:
driver = NULL;
spa_list_for_each(t, &collect, sort_link) {
/* is any active and want a driver */
if (t->want_driver && t->active && t->runnable) {
if ((t->want_driver && t->active && t->runnable) ||
t->always_process) {
driver = target;
driver->runnable = true;
break;