From 18f29bd8408d0d4b69ab07b01aaf5aa166ce1eb4 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 12 Sep 2023 15:51:45 +0200 Subject: [PATCH] jack: make sure we emit port registration events When we activate, emit the port registration events of our own port, even when they were suppressed (and marked registered) when we created them. This is what JACK2 does as well. --- pipewire-jack/src/pipewire-jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index b4158f959..3228250c4 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -4162,13 +4162,13 @@ int jack_activate (jack_client_t *client) c->activation->pending_new_pos = true; c->activation->pending_sync = true; - c->active = true; spa_list_for_each(o, &c->context.objects, link) { if (o->type != INTERFACE_Port || o->port.port == NULL || o->port.port->client != c || !o->port.port->valid) continue; + o->registered = 0; queue_notify(c, NOTIFY_TYPE_PORTREGISTRATION, o, 1, NULL); } done: