mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
client-node: refuse params on the wrong side of our mixers
This commit is contained in:
parent
93fbe121d0
commit
f86ca63597
1 changed files with 8 additions and 0 deletions
|
|
@ -1365,6 +1365,10 @@ impl_mix_port_enum_params(void *object, int seq,
|
|||
const struct spa_pod *filter)
|
||||
{
|
||||
struct port *port = object;
|
||||
|
||||
if (port->direction != direction)
|
||||
return -ENOTSUP;
|
||||
|
||||
return impl_node_port_enum_params(&port->node->node, seq, direction, port->id,
|
||||
id, start, num, filter);
|
||||
}
|
||||
|
|
@ -1376,6 +1380,10 @@ impl_mix_port_set_param(void *object,
|
|||
const struct spa_pod *param)
|
||||
{
|
||||
struct port *port = object;
|
||||
|
||||
if (port->direction != direction)
|
||||
return -ENOTSUP;
|
||||
|
||||
return impl_node_port_set_param(&port->node->node, direction, port->id,
|
||||
id, flags, param);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue