From 1bead99daf5f2482a71956487564b5376f03c844 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 9 Dec 2024 10:33:21 +0100 Subject: [PATCH] filter-graph: handle nodes with only control It's possible to make a node with only control and notify so don't error out on those nodes. --- spa/plugins/filter-graph/filter-graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/filter-graph/filter-graph.c b/spa/plugins/filter-graph/filter-graph.c index 586469811..edd3b5364 100644 --- a/spa/plugins/filter-graph/filter-graph.c +++ b/spa/plugins/filter-graph/filter-graph.c @@ -932,7 +932,7 @@ static struct descriptor *descriptor_load(struct impl *impl, const char *type, } } } - if (desc->n_input == 0 && desc->n_output == 0) { + if (desc->n_input == 0 && desc->n_output == 0 && desc->n_control == 0 && desc->n_notify == 0) { spa_log_error(impl->log, "plugin has no input and no output ports"); res = -ENOTSUP; goto exit;