mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
impl-link: use spa_aprintf when we can
This commit is contained in:
parent
2429674970
commit
7c9ce63795
1 changed files with 2 additions and 3 deletions
|
|
@ -1256,10 +1256,9 @@ struct pw_impl_link *pw_context_create_link(struct pw_context *context,
|
|||
output_node, output->port_id, this->rt.out_mix.port.port_id,
|
||||
input_node, input->port_id, this->rt.in_mix.port.port_id);
|
||||
|
||||
if (asprintf(&this->name, "%d.%d -> %d.%d",
|
||||
this->name = spa_aprintf("%d.%d -> %d.%d",
|
||||
output_node->info.id, output->port_id,
|
||||
input_node->info.id, input->port_id) < 0)
|
||||
this->name = NULL;
|
||||
input_node->info.id, input->port_id);
|
||||
pw_log_info("(%s) (%s) -> (%s)", this->name, output_node->name, input_node->name);
|
||||
|
||||
pw_impl_port_emit_link_added(output, this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue