mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
jack: mark client active a little earlier
So that we get all the notifications queued and emitted when we complete the activation.
This commit is contained in:
parent
3c812f672b
commit
6abc6e6693
1 changed files with 4 additions and 2 deletions
|
|
@ -4192,13 +4192,13 @@ int jack_activate (jack_client_t *client)
|
|||
c->buffer_frames = 0;
|
||||
|
||||
pw_data_loop_start(c->loop);
|
||||
c->active = true;
|
||||
|
||||
if ((res = do_activate(c)) < 0)
|
||||
goto done;
|
||||
|
||||
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 ||
|
||||
|
|
@ -4208,8 +4208,10 @@ int jack_activate (jack_client_t *client)
|
|||
queue_notify(c, NOTIFY_TYPE_PORTREGISTRATION, o, 1, NULL);
|
||||
}
|
||||
done:
|
||||
if (res < 0)
|
||||
if (res < 0) {
|
||||
c->active = false;
|
||||
pw_data_loop_stop(c->loop);
|
||||
}
|
||||
|
||||
pw_log_debug("%p: activate result:%d", c, res);
|
||||
thaw_callbacks(c);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue