mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05: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,
|
client_node_set_param(void *object, uint32_t id, uint32_t flags,
|
||||||
const struct spa_pod *param)
|
const struct spa_pod *param)
|
||||||
{
|
{
|
||||||
pw_log_warn("set param not implemented");
|
struct pw_proxy *proxy = object;
|
||||||
return -ENOTSUP;
|
struct node_data *data = proxy->user_data;
|
||||||
|
return spa_node_set_param(data->node->node, id, flags, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
client_node_set_io(void *object,
|
client_node_set_io(void *object,
|
||||||
uint32_t id,
|
uint32_t id,
|
||||||
|
|
@ -885,12 +885,13 @@ client_node_port_set_io(void *object,
|
||||||
mix->mix.io = ptr;
|
mix->mix.io = ptr;
|
||||||
if (ptr)
|
if (ptr)
|
||||||
activate_mix(data, mix);
|
activate_mix(data, mix);
|
||||||
} else {
|
}
|
||||||
if ((res = spa_node_port_set_io(mix->port->node->node,
|
if ((res = spa_node_port_set_io(mix->port->mix,
|
||||||
direction, port_id,
|
direction, mix_id,
|
||||||
id,
|
id, ptr, size)) < 0) {
|
||||||
ptr,
|
if (res == -ENOTSUP)
|
||||||
size)) < 0)
|
res = 0;
|
||||||
|
else
|
||||||
goto error_exit;
|
goto error_exit;
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue