Skip to content

Commit

Permalink
context: don't touch denormals settings when left unset
Browse files Browse the repository at this point in the history
We should not influence the denormals CPU flag unless explicitly
requested in the config.
  • Loading branch information
wtay committed Feb 21, 2022
1 parent edb5664 commit 820e282
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pipewire/context.c
Expand Up @@ -290,9 +290,8 @@ 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";
spa_cpu_zero_denormals(cpu, spa_atob(str));
if ((str = pw_properties_get(properties, SPA_KEY_CPU_ZERO_DENORMALS)) != NULL)
spa_cpu_zero_denormals(cpu, spa_atob(str));
}

if (getenv("PIPEWIRE_DEBUG") == NULL &&
Expand Down

0 comments on commit 820e282

Please sign in to comment.