From 820e282a147f15aa771b9fa4e2a2d71c3c67e7d4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 21 Feb 2022 17:19:57 +0100 Subject: [PATCH] context: don't touch denormals settings when left unset We should not influence the denormals CPU flag unless explicitly requested in the config. --- src/pipewire/context.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pipewire/context.c b/src/pipewire/context.c index 0e136bbce..dc969153e 100644 --- a/src/pipewire/context.c +++ b/src/pipewire/context.c @@ -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 &&