mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
remote-node: implement set_param and port_set_io
Implement set_param, just call the node implementation Always call port_set_io on the mixer port.
This commit is contained in:
parent
5385bb5674
commit
57d471b6f4
1 changed files with 10 additions and 9 deletions
|
|
@ -503,11 +503,11 @@ static int
|
|||
client_node_set_param(void *object, uint32_t id, uint32_t flags,
|
||||
const struct spa_pod *param)
|
||||
{
|
||||
pw_log_warn("set param not implemented");
|
||||
return -ENOTSUP;
|
||||
struct pw_proxy *proxy = object;
|
||||
struct node_data *data = proxy->user_data;
|
||||
return spa_node_set_param(data->node->node, id, flags, param);
|
||||
}
|
||||
|
||||
|
||||
static int
|
||||
client_node_set_io(void *object,
|
||||
uint32_t id,
|
||||
|
|
@ -885,12 +885,13 @@ client_node_port_set_io(void *object,
|
|||
mix->mix.io = ptr;
|
||||
if (ptr)
|
||||
activate_mix(data, mix);
|
||||
} else {
|
||||
if ((res = spa_node_port_set_io(mix->port->node->node,
|
||||
direction, port_id,
|
||||
id,
|
||||
ptr,
|
||||
size)) < 0)
|
||||
}
|
||||
if ((res = spa_node_port_set_io(mix->port->mix,
|
||||
direction, mix_id,
|
||||
id, ptr, size)) < 0) {
|
||||
if (res == -ENOTSUP)
|
||||
res = 0;
|
||||
else
|
||||
goto error_exit;
|
||||
}
|
||||
return res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue