[pulseaudio-discuss] [PATCH 16/18] resampler: Don't check for unsupported methods in fix_method

poljar (Damir Jelić) poljarinho at gmail.com
Mon Jul 15 06:48:38 PDT 2013


With split of the resample_methods table the parse_method function
doesn't allow choosing an unsupported resampling method.

This check is now dead code and is therefore removed.
---
 src/pulsecore/resampler.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
index c29e406..673d43b 100644
--- a/src/pulsecore/resampler.c
+++ b/src/pulsecore/resampler.c
@@ -244,11 +244,6 @@ static pa_resample_method_t pa_resampler_fix_method(
         method = PA_RESAMPLER_COPY;
     }
 
-    if (!pa_resample_method_supported(method)) {
-        pa_log_warn("Support for resampler '%s' not compiled in, reverting to 'auto'.", pa_resample_method_to_string(method));
-        method = PA_RESAMPLER_AUTO;
-    }
-
     switch (method) {
         case PA_RESAMPLER_COPY:     /* fall through */
         case PA_RESAMPLER_FFMPEG:
-- 
1.8.3.2



More information about the pulseaudio-discuss mailing list