mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
client-node: also send param idss
This commit is contained in:
parent
7281a2b2cf
commit
f42e214c2d
2 changed files with 6 additions and 1 deletions
|
|
@ -581,6 +581,8 @@ do_update_port(struct node *this,
|
|||
port->properties = pw_properties_new_dict(info->props);
|
||||
port->info.props = &port->properties->dict;
|
||||
}
|
||||
port->info.n_params = 0;
|
||||
port->info.params = NULL;
|
||||
spa_node_emit_port_info(&this->hooks, port->direction, port->id, info);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -489,11 +489,14 @@ static int add_port_update(struct pw_proxy *proxy, struct pw_port *port, uint32_
|
|||
if (change_mask & PW_CLIENT_NODE_PORT_UPDATE_INFO) {
|
||||
pi.change_mask = SPA_PORT_CHANGE_MASK_FLAGS |
|
||||
SPA_PORT_CHANGE_MASK_RATE |
|
||||
SPA_PORT_CHANGE_MASK_PROPS;
|
||||
SPA_PORT_CHANGE_MASK_PROPS |
|
||||
SPA_PORT_CHANGE_MASK_PARAMS;
|
||||
pi.flags = port->spa_flags;
|
||||
pi.rate = SPA_FRACTION(0, 1);
|
||||
pi.props = &port->properties->dict;
|
||||
pi.flags &= ~SPA_PORT_FLAG_CAN_ALLOC_BUFFERS;
|
||||
pi.n_params = port->info.n_params;
|
||||
pi.params = port->info.params;
|
||||
}
|
||||
|
||||
res = pw_client_node_proxy_port_update(data->node_proxy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue