From 726234c82fb5fed3484c3c2dc66426f4167b752a Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 4 Nov 2024 20:36:12 +0200 Subject: [PATCH] audioconvert: always push out data when the out_offset reaches max_out No matter if the input data (n_samples) is > 0, the code here should flush out existing data if the output buffer is full --- 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 6f633802a..935abcafa 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -3280,7 +3280,7 @@ static int impl_node_process(void *object) } dir = &this->dir[SPA_DIRECTION_OUTPUT]; - if (SPA_LIKELY(n_samples > 0 && (this->out_offset >= max_out || flush_out))) { + if (SPA_LIKELY(this->out_offset >= max_out || flush_out)) { /* queue output buffers */ for (i = 0; i < dir->n_ports; i++) { port = GET_OUT_PORT(this, i);