mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-node: don't error in cleanup
It's possible the cleanup code might try to clean up ports we already removed, don't show an error on that.
This commit is contained in:
parent
9c1ac4e850
commit
856e1fe812
2 changed files with 4 additions and 3 deletions
|
|
@ -660,7 +660,8 @@ static int do_port_set_io(struct impl *impl,
|
|||
direction == SPA_DIRECTION_INPUT ? "input" : "output",
|
||||
port_id, mix_id, data, size);
|
||||
|
||||
spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
|
||||
if (!CHECK_PORT(this, direction, port_id))
|
||||
return data == NULL ? 0 : -EINVAL;
|
||||
|
||||
port = GET_PORT(this, direction, port_id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue