From b9d78d59925a803b15eb82acccc9adf81368da25 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 22 Aug 2023 13:06:10 +0200 Subject: [PATCH] audioconvert: add queued input to the delay The input that we have queued will also add to the resampler delay. Fixes #3454 --- 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 9a6b699d0..3b02381dc 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -2594,7 +2594,7 @@ static uint32_t resample_update_rate_match(struct impl *this, bool passthrough, spa_log_trace_fp(this->log, "%p: next match %u", this, match_size); if (this->io_rate_match) { - this->io_rate_match->delay = delay; + this->io_rate_match->delay = delay + in_queued; this->io_rate_match->size = match_size; } return match_size;