mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
filter-chain: support single copy plugin
When input and output are linked with a copy function, don't disable the node but add it to the valid graph inputs.
This commit is contained in:
parent
72242dc91f
commit
344be779b1
1 changed files with 6 additions and 2 deletions
|
|
@ -1938,6 +1938,8 @@ static int setup_graph(struct graph *graph, struct spa_json *inputs, struct spa_
|
|||
pw_log_error("input port %s not found", v);
|
||||
goto error;
|
||||
} else {
|
||||
bool disabled = false;
|
||||
|
||||
desc = port->node->desc;
|
||||
d = desc->desc;
|
||||
if (i == 0 && port->external != SPA_ID_INVALID) {
|
||||
|
|
@ -1972,12 +1974,14 @@ static int setup_graph(struct graph *graph, struct spa_json *inputs, struct spa_
|
|||
gp->hndl = &peer->node->hndl[i];
|
||||
gp->port = peer->p;
|
||||
gp->next = true;
|
||||
disabled = true;
|
||||
}
|
||||
if (gp != NULL)
|
||||
gp->next = false;
|
||||
}
|
||||
port->node->disabled = true;
|
||||
} else {
|
||||
port->node->disabled = disabled;
|
||||
}
|
||||
if (!disabled) {
|
||||
pw_log_info("input port %s[%d]:%s",
|
||||
port->node->name, i, d->ports[port->p].name);
|
||||
port->external = graph->n_input;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue