mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-26 07:58:03 -04:00
Revert "pipewire-jack: emit foreign port registration callbacks on jack_activate"
This reverts commit 45633303aa.
This commit is contained in:
parent
b00e8f8bb2
commit
cab633b4f8
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_new_pos = true;
|
||||||
c->activation->pending_sync = 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) {
|
spa_list_for_each(o, &c->context.objects, link) {
|
||||||
if (o->type != INTERFACE_Port || o->removed)
|
if (o->type != INTERFACE_Port || o->port.port == NULL ||
|
||||||
continue;
|
o->port.port->client != c || !o->port.port->valid)
|
||||||
/* 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))
|
|
||||||
continue;
|
continue;
|
||||||
o->registered = 0;
|
o->registered = 0;
|
||||||
queue_notify(c, NOTIFY_TYPE_PORTREGISTRATION, o, 1, NULL);
|
queue_notify(c, NOTIFY_TYPE_PORTREGISTRATION, o, 1, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue