From 5c8e1ab7b619c7e2bfb3c2d6cd66b81f3403112d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 24 Jun 2025 13:43:17 +0200 Subject: [PATCH] jack: only update port name for other ports Don't try to check for renames of our own port, we cause that ourselves. Also use the name of the port to find our ports. --- pipewire-jack/src/pipewire-jack.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 588689de1..511f44606 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -3939,7 +3939,7 @@ static void registry_event_global(void *data, uint32_t id, o = NULL; if (node_id == c->node_id) { - snprintf(tmp, sizeof(tmp), "%s:%s", c->name, str); + snprintf(tmp, sizeof(tmp), "%s:%s", c->name, name); o = find_port_by_name(c, tmp); if (o != NULL) pw_log_info("%p: %s found our port %p", c, tmp, o); @@ -4000,7 +4000,8 @@ static void registry_event_global(void *data, uint32_t id, o->port.system_id+1); } - update_port_name(o, name); + if (node_id != c->node_id) + update_port_name(o, name); pw_log_debug("%p: %p add port %d name:%s %d", c, o, id, o->port.name, type_id);