From 68877dcee74c10745d6105112a5be2f52130c8d0 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 Nov 2024 09:27:22 +0100 Subject: [PATCH] audioconvert: only output when there is something to output Or else we get 0 sized output buffers. --- 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 935abcafa..fac944fff 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(this->out_offset >= max_out || flush_out)) { + if (SPA_LIKELY(this->out_offset > 0 && (this->out_offset >= max_out || flush_out))) { /* queue output buffers */ for (i = 0; i < dir->n_ports; i++) { port = GET_OUT_PORT(this, i);