From 9825fb3647ec896118b6f2b416bb8462e28410b9 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 6 May 2026 16:21:07 +0200 Subject: [PATCH] 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. --- src/pipewire/impl-link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipewire/impl-link.c b/src/pipewire/impl-link.c index 028620ed1..b7c401280 100644 --- a/src/pipewire/impl-link.c +++ b/src/pipewire/impl-link.c @@ -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;