mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: make sure res is always set
This commit is contained in:
parent
0ff1d1e4cb
commit
9b48c6f3ea
1 changed files with 4 additions and 0 deletions
|
|
@ -1337,11 +1337,13 @@ static int setup_graph(struct graph *graph, struct spa_json *inputs, struct spa_
|
|||
pw_log_error("input port %s[%d]:%s already used as input %d, use mixer",
|
||||
port->node->name, i, d->PortNames[port->p],
|
||||
graph->n_input);
|
||||
res = -EBUSY;
|
||||
goto error;
|
||||
}
|
||||
if (port->n_links > 0) {
|
||||
pw_log_error("input port %s[%d]:%s already used by link, use mixer",
|
||||
port->node->name, i, d->PortNames[port->p]);
|
||||
res = -EBUSY;
|
||||
goto error;
|
||||
}
|
||||
pw_log_info("input port %s[%d]:%s",
|
||||
|
|
@ -1383,11 +1385,13 @@ static int setup_graph(struct graph *graph, struct spa_json *inputs, struct spa_
|
|||
pw_log_error("output port %s[%d]:%s already used as output %d, use copy",
|
||||
port->node->name, i, d->PortNames[port->p],
|
||||
graph->n_output);
|
||||
res = -EBUSY;
|
||||
goto error;
|
||||
}
|
||||
if (port->n_links > 0) {
|
||||
pw_log_error("output port %s[%d]:%s already used by link, use copy",
|
||||
port->node->name, i, d->PortNames[port->p]);
|
||||
res = -EBUSY;
|
||||
goto error;
|
||||
}
|
||||
pw_log_info("output port %s[%d]:%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue