mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
jack: don't emit portregistration when inactive
Remove the port complete when the client is inactive. Otherwise we might get a portregistration Off the next time the client is activated.
This commit is contained in:
parent
67fcd9646d
commit
36fdceef71
1 changed files with 2 additions and 2 deletions
|
|
@ -899,7 +899,7 @@ static void emit_callbacks(struct client *c)
|
|||
c->registration_arg);
|
||||
break;
|
||||
case INTERFACE_Port:
|
||||
pw_log_debug("%p: port %u %s", c, o->serial, o->port.name);
|
||||
pw_log_debug("%p: port %u %s %d", c, o->serial, o->port.name, c->active);
|
||||
do_callback(c, portregistration_callback, c->active,
|
||||
o->serial,
|
||||
o->register_arg,
|
||||
|
|
@ -4653,7 +4653,7 @@ int jack_port_unregister (jack_client_t *client, jack_port_t *port)
|
|||
pw_log_warn("can't unregister port %s: %s", o->port.name,
|
||||
spa_strerror(res));
|
||||
}
|
||||
free_port(c, p, false);
|
||||
free_port(c, p, !c->active);
|
||||
done:
|
||||
thaw_callbacks(c);
|
||||
pw_thread_loop_unlock(c->context.loop);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue