From b26281264374fafec4c8f07d84efa25aae03e2e8 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 27 Apr 2023 17:10:41 +0200 Subject: [PATCH] audioconvert: always allow peaks resampler When we're using the peaks resampler, allow resampling, even when it is disabled in the config. The peaks resampler is just for GUI and would not really change the signal, so we can allow this. --- spa/plugins/audioconvert/audioconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/audioconvert/audioconvert.c b/spa/plugins/audioconvert/audioconvert.c index 71bf0046c..0cffa122e 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -1563,7 +1563,7 @@ static int setup_resample(struct impl *this) out->format.info.raw.channels, out->format.info.raw.rate); - if (this->props.resample_disabled && + if (this->props.resample_disabled && !this->resample_peaks && in->format.info.raw.rate != out->format.info.raw.rate) return -EPERM;