context: don't use fallback driver if priority_driver <= 0

The drivers with priority_driver <= 0 should not be used as a fallback
driver for audio ever because it does not do the timing correctly.

One example is the screencast driver.

Fixes #3219
This commit is contained in:
Wim Taymans 2023-05-22 09:48:51 +02:00
parent c5e1515b7a
commit de9b28f783

View file

@ -1260,9 +1260,10 @@ again:
collect_nodes(context, n, &collect); collect_nodes(context, n, &collect);
move_to_driver(context, &collect, n); move_to_driver(context, &collect, n);
} }
/* from now on we are only interested in active driving nodes. /* from now on we are only interested in active driving nodes
* We're going to see if there are active followers. */ * with a driver_priority. We're going to see if there are
if (!n->driving || !n->active) * active followers. */
if (!n->driving || !n->active || n->priority_driver <= 0)
continue; continue;
/* first active driving node is fallback */ /* first active driving node is fallback */