client-node: also send param idss

This commit is contained in:
Wim Taymans 2019-03-04 17:54:17 +01:00
parent 7281a2b2cf
commit f42e214c2d
2 changed files with 6 additions and 1 deletions

View file

@ -581,6 +581,8 @@ do_update_port(struct node *this,
port->properties = pw_properties_new_dict(info->props); port->properties = pw_properties_new_dict(info->props);
port->info.props = &port->properties->dict; 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); spa_node_emit_port_info(&this->hooks, port->direction, port->id, info);
} }
} }

View file

@ -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) { if (change_mask & PW_CLIENT_NODE_PORT_UPDATE_INFO) {
pi.change_mask = SPA_PORT_CHANGE_MASK_FLAGS | pi.change_mask = SPA_PORT_CHANGE_MASK_FLAGS |
SPA_PORT_CHANGE_MASK_RATE | 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.flags = port->spa_flags;
pi.rate = SPA_FRACTION(0, 1); pi.rate = SPA_FRACTION(0, 1);
pi.props = &port->properties->dict; pi.props = &port->properties->dict;
pi.flags &= ~SPA_PORT_FLAG_CAN_ALLOC_BUFFERS; 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, res = pw_client_node_proxy_port_update(data->node_proxy,