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:
parent
c5e1515b7a
commit
de9b28f783
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue