resampler: Fix sample_format_more_precise() for the case of comparing against PA_SAMP...
authorAndrey Semashev <andrey.semashev@gmail.com>
Wed, 12 Nov 2014 20:49:13 +0000 (23:49 +0300)
committerPeter Meerwald <pmeerw@pmeerw.net>
Wed, 12 Nov 2014 22:17:08 +0000 (23:17 +0100)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
src/pulsecore/resampler.c

index 8b30c244c7691d1e9f83fa555b197142221436b5..183d05f64085aa68976ea0a8406feb37960e7145 100644 (file)
@@ -234,7 +234,7 @@ static bool sample_format_more_precise(pa_sample_format_t a, pa_sample_format_t
         case PA_SAMPLE_S32LE:
         case PA_SAMPLE_S32BE:
             if (b == PA_SAMPLE_FLOAT32LE || b == PA_SAMPLE_FLOAT32BE ||
-                b == PA_SAMPLE_S32LE || b == PA_SAMPLE_FLOAT32BE)
+                b == PA_SAMPLE_S32LE || b == PA_SAMPLE_S32BE)
                 return false;
             else
                 return true;