From cb1c259bc5c7000a06d750588a6449f48f7fb360 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 16 Sep 2021 11:43:32 +0200 Subject: [PATCH] jack: check buffersize when we get the io area We can immeditately update the buffersize when we get the io area. --- pipewire-jack/src/pipewire-jack.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index f323a3a3a..51ddc02d9 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -1567,8 +1567,10 @@ static int client_node_set_io(void *object, c->position = ptr; c->driver_id = ptr ? c->position->clock.id : SPA_ID_INVALID; update_driver_activation(c); - if (ptr) + if (ptr) { check_sample_rate(c, c->position); + check_buffer_frames(c, c->position); + } break; default: break; @@ -3136,7 +3138,7 @@ jack_client_t * jack_client_open (const char *client_name, } pw_thread_loop_unlock(client->context.loop); - pw_log_debug(NAME" %p: new", client); + pw_log_info(NAME" %p: opened", client); return (jack_client_t *)client; no_props: @@ -3335,8 +3337,6 @@ int jack_activate (jack_client_t *client) c->activation->pending_new_pos = true; c->activation->pending_sync = true; - if (c->position) - check_buffer_frames(c, c->position); c->active = true;