LADI
/
spa
1
Fork 0

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
1 changed files with 4 additions and 3 deletions

View File

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