From 92c7c56e159246d7486bad84bbfb926b1bf243ca 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 1b5cbd062..897cdf8fd 100644 --- a/spa/plugins/audioconvert/audioconvert.c +++ b/spa/plugins/audioconvert/audioconvert.c @@ -3272,7 +3272,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 > 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);