mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-13 13:30:05 -05:00
context: also take quantum from the driver if any
This commit is contained in:
parent
56f84ce0e4
commit
970ed0bdd6
1 changed files with 4 additions and 4 deletions
|
|
@ -963,16 +963,16 @@ int pw_context_recalc_graph(struct pw_context *context, const char *reason)
|
|||
|
||||
/* collect quantum and count active nodes */
|
||||
spa_list_for_each(s, &n->follower_list, follower_link) {
|
||||
if (s == n)
|
||||
continue;
|
||||
if (s->active)
|
||||
running = !n->passive;
|
||||
if (s->quantum_size > 0) {
|
||||
if (min_quantum == 0 || s->quantum_size < min_quantum)
|
||||
min_quantum = s->quantum_size;
|
||||
if (s->quantum_size > max_quantum)
|
||||
max_quantum = s->quantum_size;
|
||||
}
|
||||
if (s == n)
|
||||
continue;
|
||||
if (s->active)
|
||||
running = !n->passive;
|
||||
}
|
||||
quantum = min_quantum;
|
||||
if (quantum == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue