filter-graph: fix port find logic

We need both ports to be NULL (failed to find the ports as audio ports)
when we try to link control/notify ports.
This commit is contained in:
Wim Taymans 2025-05-08 12:15:58 +02:00
parent 46f5740604
commit 68c5f41708

View file

@ -1132,7 +1132,7 @@ static int parse_link(struct graph *graph, struct spa_json *json)
out_port = find_port(def_out_node, output, SPA_FGA_PORT_OUTPUT);
in_port = find_port(def_in_node, input, SPA_FGA_PORT_INPUT);
if (out_port == NULL && out_port == NULL) {
if (out_port == NULL && in_port == NULL) {
/* try control ports */
out_port = find_port(def_out_node, output, SPA_FGA_PORT_OUTPUT | SPA_FGA_PORT_CONTROL);
in_port = find_port(def_in_node, input, SPA_FGA_PORT_INPUT | SPA_FGA_PORT_CONTROL);