mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
context: allow non-power-of-2 quantum when forced
When forcing a quantum allow non-power-of-2 as well.
This commit is contained in:
parent
945be16617
commit
e8d6407c4e
1 changed files with 1 additions and 1 deletions
|
|
@ -1474,7 +1474,7 @@ again:
|
||||||
target_quantum = SPA_CLAMP(target_quantum, node_min_quantum, node_max_quantum);
|
target_quantum = SPA_CLAMP(target_quantum, node_min_quantum, node_max_quantum);
|
||||||
target_quantum = SPA_MIN(target_quantum, lim_quantum);
|
target_quantum = SPA_MIN(target_quantum, lim_quantum);
|
||||||
|
|
||||||
if (settings->clock_power_of_two_quantum)
|
if (settings->clock_power_of_two_quantum && !force_quantum)
|
||||||
target_quantum = flp2(target_quantum);
|
target_quantum = flp2(target_quantum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue