mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-14 05:34:06 -04:00
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:
parent
3e209f6d20
commit
f4558472df
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue