mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
Improve introspection
Move introspectable info to the node and link. Only enumerate the device formats once. Change some field names. Pass link format in introspection
This commit is contained in:
parent
e48c361a66
commit
dbe20c9934
14 changed files with 163 additions and 140 deletions
|
|
@ -1032,9 +1032,9 @@ static void on_initialized(struct pw_listener *listener, struct pw_node *node)
|
|||
if (this->resource == NULL)
|
||||
return;
|
||||
|
||||
impl->transport = pw_transport_new(node->max_input_ports, node->max_output_ports);
|
||||
impl->transport->area->n_inputs = node->n_input_ports;
|
||||
impl->transport->area->n_outputs = node->n_output_ports;
|
||||
impl->transport = pw_transport_new(node->info.max_input_ports, node->info.max_output_ports);
|
||||
impl->transport->area->n_input_ports = node->info.n_input_ports;
|
||||
impl->transport->area->n_output_ports = node->info.n_output_ports;
|
||||
|
||||
pw_transport_get_info(impl->transport, &info);
|
||||
pw_client_node_notify_transport(this->resource, info.memfd, info.offset, info.size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue