mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
port: add some more warnings when unregister fails
This commit is contained in:
parent
6c84b77e4d
commit
f4021c7f44
2 changed files with 8 additions and 4 deletions
|
|
@ -1076,10 +1076,12 @@ static void pw_impl_port_remove(struct pw_impl_port *port)
|
|||
}
|
||||
|
||||
if (port->direction == PW_DIRECTION_INPUT) {
|
||||
pw_map_insert_at(&node->input_port_map, port->port_id, NULL);
|
||||
if ((res = pw_map_insert_at(&node->input_port_map, port->port_id, NULL)) < 0)
|
||||
pw_log_warn("%p: can't remove input port: %s", port, spa_strerror(res));
|
||||
node->info.n_input_ports--;
|
||||
} else {
|
||||
pw_map_insert_at(&node->output_port_map, port->port_id, NULL);
|
||||
if ((res = pw_map_insert_at(&node->output_port_map, port->port_id, NULL)) < 0)
|
||||
pw_log_warn("%p: can't remove output port: %s", port, spa_strerror(res));
|
||||
node->info.n_output_ports--;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue