client-node: use the right port for io

To set the io on the mixer ports, we need to use the same id that
was used to add the port, not the id we use to identify the mixer
structure.

Fixes #759
This commit is contained in:
Wim Taymans 2021-04-28 17:04:36 +02:00
parent b3d94bf019
commit a76032a637

View file

@ -797,7 +797,7 @@ client_node_port_set_io(void *object,
} }
if ((res = spa_node_port_set_io(mix->port->mix, if ((res = spa_node_port_set_io(mix->port->mix,
direction, mix_id, id, ptr, size)) < 0) { direction, mix->mix.port.port_id, id, ptr, size)) < 0) {
if (res == -ENOTSUP) if (res == -ENOTSUP)
res = 0; res = 0;
else else