[PATCH] Fix sample_format_more_precise for the case of comparing two PA_SAMPLE_S32BE.

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

 



> ---
>  src/pulsecore/resampler.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/pulsecore/resampler.c b/src/pulsecore/resampler.c
> index 8b30c24..183d05f 100644
> --- a/src/pulsecore/resampler.c
> +++ b/src/pulsecore/resampler.c
> @@ -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;

applied (after fixing subject slightly)

-- 

Peter Meerwald
+43-664-2444418 (mobile)


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

  Powered by Linux