From a427e602bdf09cae828730dcc16144d891694f83 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 22 Jun 2022 15:48:09 +0200 Subject: [PATCH] audioconvert: in merge mode, flush input In merge mode we handle 1 quantum and then flush the input and output. Fixes a case were samples were cut at the start. --- 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 55a323e80..a6517b003 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -2288,7 +2288,7 @@ static int impl_node_process(void *object) * always output the resulting data */ n_samples = SPA_MIN(n_samples, quant_samples); max_out = this->quantum_limit; - flush_out = true; + flush_out = flush_in = true; } dir = &this->dir[SPA_DIRECTION_OUTPUT];