From 37dbf93cc4a00b06675e38ff6c9a7c0cfa698f6f Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 7 May 2025 12:55:00 +0200 Subject: [PATCH] filter-graph: remove useless check --- spa/plugins/filter-graph/filter-graph.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spa/plugins/filter-graph/filter-graph.c b/spa/plugins/filter-graph/filter-graph.c index bc9ff154a..91afd62a5 100644 --- a/spa/plugins/filter-graph/filter-graph.c +++ b/spa/plugins/filter-graph/filter-graph.c @@ -256,9 +256,8 @@ static int impl_process(void *object, if (out[i] == NULL) continue; - port = i < graph->n_output ? &graph->output[i] : NULL; - - if (port && port->desc) + port = &graph->output[i]; + if (port->desc) port->desc->connect_port(*port->hndl, port->port, out[i]); else memset(out[i], 0, n_samples * sizeof(float));