[pulseaudio-discuss] [PATCH v2 02/14] cpu: Don't check for both x86 and ARM code

Peter Meerwald pmeerw at pmeerw.net
Wed Sep 10 07:40:03 PDT 2014


Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/pulsecore/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pulsecore/cpu.c b/src/pulsecore/cpu.c
index 542e86f..814abf6 100644
--- a/src/pulsecore/cpu.c
+++ b/src/pulsecore/cpu.c
@@ -26,7 +26,7 @@ void pa_cpu_init(pa_cpu_info *cpu_info) {
     if (!getenv("PULSE_NO_SIMD")) {
         if (pa_cpu_init_x86(&cpu_info->flags.x86))
             cpu_info->cpu_type = PA_CPU_X86;
-        if (pa_cpu_init_arm(&cpu_info->flags.arm))
+        else if (pa_cpu_init_arm(&cpu_info->flags.arm))
             cpu_info->cpu_type = PA_CPU_ARM;
         pa_cpu_init_orc(*cpu_info);
     }
-- 
1.9.1



More information about the pulseaudio-discuss mailing list