From daf326a9e4dcd5c9d716e6c2fc0a07b99f6ee1c0 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 6 Nov 2015 15:54:55 +0530 Subject: [PATCH] resampler: Don't expose soxr methods if they are not supported Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=92780 --- src/pulsecore/resampler.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c index bf3fdb872..b683b0571 100644 --- a/src/pulsecore/resampler.c +++ b/src/pulsecore/resampler.c @@ -685,6 +685,11 @@ int pa_resample_method_supported(pa_resample_method_t m) { return 0; #endif +#ifndef HAVE_SOXR + if (m >= PA_RESAMPLER_SOXR_MQ && m <= PA_RESAMPLER_SOXR_VHQ) + return 0; +#endif + return 1; }