jack: emit port_rename callbacks

When the port is renamed, we queue a PORT_RENAME callback with an arg1
as 1. Before emitting the event we check the registered state of the
port but we want to suppress the event if the port was *not* registered,
ie. when the registered state != 1 (arg1).
This commit is contained in:
Wim Taymans 2025-08-20 11:39:30 +02:00
parent f60638a3aa
commit b801527f88

View file

@ -1095,7 +1095,7 @@ static void on_notify_event(void *data, uint64_t count)
c->portregistration_arg);
break;
case NOTIFY_TYPE_PORT_RENAME:
if (o->registered == notify->arg1)
if (o->registered != notify->arg1)
break;
pw_log_debug("%p: port rename %u %s->%s", c, o->serial,
o->port.old_name, o->port.name);