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:
Wim Taymans 2020-04-28 13:56:23 +02:00
parent 9c1ac4e850
commit 856e1fe812
2 changed files with 4 additions and 3 deletions

View file

@ -660,7 +660,8 @@ static int do_port_set_io(struct impl *impl,
direction == SPA_DIRECTION_INPUT ? "input" : "output", direction == SPA_DIRECTION_INPUT ? "input" : "output",
port_id, mix_id, data, size); 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); port = GET_PORT(this, direction, port_id);