mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
context: don't touch denormals settings when left unset
We should not influence the denormals CPU flag unless explicitly requested in the config.
This commit is contained in:
parent
edb5664017
commit
820e282a14
1 changed files with 2 additions and 3 deletions
|
|
@ -290,8 +290,7 @@ struct pw_context *pw_context_new(struct pw_loop *main_loop,
|
|||
if (pw_properties_get(properties, PW_KEY_CPU_MAX_ALIGN) == NULL)
|
||||
pw_properties_setf(properties, PW_KEY_CPU_MAX_ALIGN,
|
||||
"%u", spa_cpu_get_max_align(cpu));
|
||||
if ((str = pw_properties_get(properties, SPA_KEY_CPU_ZERO_DENORMALS)) == NULL)
|
||||
str = "true";
|
||||
if ((str = pw_properties_get(properties, SPA_KEY_CPU_ZERO_DENORMALS)) != NULL)
|
||||
spa_cpu_zero_denormals(cpu, spa_atob(str));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue