impl-link: use the right port direction string

We might swap input and output so make sure we use the right one in the
debug log to avoid confusion.
This commit is contained in:
Wim Taymans 2026-05-06 16:21:07 +02:00
parent c362bca5e9
commit 9825fb3647

View file

@ -606,10 +606,10 @@ static int do_negotiate(struct pw_impl_link *this)
error:
pw_context_debug_port_params(context, node[0],
info[0]->port->direction, port_id[0],
SPA_PARAM_EnumFormat, res, "input format (%s)", error);
SPA_PARAM_EnumFormat, res, "%s format (%s)", dir[0], error);
pw_context_debug_port_params(context, node[1],
info[1]->port->direction, port_id[1],
SPA_PARAM_EnumFormat, res, "output format (%s)", error);
SPA_PARAM_EnumFormat, res, "%s format (%s)", dir[1], error);
link_update_state(this, PW_LINK_STATE_ERROR, res, error);
free(format);
return res;