Revert "pipewire-jack: emit foreign port registration callbacks on jack_activate"

This reverts commit b0065bfe9a.

This causes double ports in carla.
This commit is contained in:
Wim Taymans 2026-03-12 15:00:34 +01:00
parent 3e209f6d20
commit f4558472df

View file

@ -4886,15 +4886,9 @@ int jack_activate (jack_client_t *client)
c->activation->pending_new_pos = true;
c->activation->pending_sync = true;
/* emits all foreign active ports, skips own (already announced via jack_port_register) */
spa_list_for_each(o, &c->context.objects, link) {
if (o->type != INTERFACE_Port || o->removed)
continue;
/* own ports are handled by jack_port_register */
if (o->port.port != NULL && o->port.port->client == c)
continue;
/* only announce ports whose node is active */
if (o->port.node != NULL && !node_is_active(c, o->port.node))
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);