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.
This commit is contained in:
Wim Taymans 2024-12-09 10:33:21 +01:00
parent 2b24b27f7f
commit 1bead99daf

View file

@ -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;