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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux