mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
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:
parent
46f5740604
commit
68c5f41708
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue