mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
node: fix adding ports
This commit is contained in:
parent
2198cbe00f
commit
c0f8f811e8
1 changed files with 4 additions and 1 deletions
|
|
@ -162,9 +162,12 @@ static void update_port_map(struct pw_node *node, enum pw_direction direction,
|
|||
pw_log_debug("node %p: %s port %d added", node,
|
||||
pw_direction_as_string(direction), ids[n]);
|
||||
|
||||
if (port == NULL)
|
||||
if (port == NULL) {
|
||||
if ((port = pw_port_new(direction, ids[n], NULL, 0)))
|
||||
pw_port_add(port, node);
|
||||
o = ids[n] + 1;
|
||||
os++;
|
||||
}
|
||||
|
||||
n++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue