mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
context: apply new quantum and rate when driver is idle
When the driver is IDLE, apply the quantum and rate immediately so that we can use the values when starting the driver. See #1913
This commit is contained in:
parent
d2ec680d3d
commit
ee0fcf05c1
1 changed files with 6 additions and 0 deletions
|
|
@ -1246,6 +1246,12 @@ again:
|
|||
n->current_pending = true;
|
||||
}
|
||||
|
||||
if (n->info.state < PW_NODE_STATE_RUNNING && n->current_pending) {
|
||||
n->rt.position->clock.duration = n->current_quantum;
|
||||
n->rt.position->clock.rate = n->current_rate;
|
||||
n->current_pending = false;
|
||||
}
|
||||
|
||||
pw_log_debug("%p: driving %p running:%d passive:%d quantum:%u '%s'",
|
||||
context, n, running, n->passive, quantum, n->name);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue