mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
node: max_ports 0 already means no ports
This commit is contained in:
parent
0738f7fcf5
commit
2ece95ea48
1 changed files with 1 additions and 1 deletions
|
|
@ -444,7 +444,7 @@ struct pw_port *pw_node_get_free_port(struct pw_node *node, enum pw_direction di
|
|||
}
|
||||
|
||||
/* no port, can we create one ? */
|
||||
if (max_ports == 0 || n_ports < max_ports) {
|
||||
if (n_ports < max_ports) {
|
||||
uint32_t port_id = pw_map_insert_new(portmap, NULL);
|
||||
|
||||
pw_log_debug("node %p: creating port direction %d %u", node, direction, port_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue