mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
context: relax quantum change conditions
We can change the quantum of a node while it is running just fine so relax the check. This was copied from the rate change logic, which is avoided while the node is running. This fixes a regression in dynamic quantum switching. Fixes #3574
This commit is contained in:
parent
7ecea07a63
commit
19b02003b0
1 changed files with 1 additions and 3 deletions
|
|
@ -1473,9 +1473,7 @@ again:
|
|||
}
|
||||
|
||||
current_quantum = n->target_quantum;
|
||||
if (!restore_quantum &&
|
||||
(lock_quantum || need_resume || !running ||
|
||||
(!force_quantum && (n->info.state > PW_NODE_STATE_IDLE)))) {
|
||||
if (!restore_quantum && (lock_quantum || need_resume || !running)) {
|
||||
pw_log_debug("%p: keep quantum:%u restore:%u lock:%u resume:%u "
|
||||
"running:%u force:%u state:%s", context,
|
||||
current_quantum, restore_quantum, lock_quantum, need_resume,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue