jack: always check srate/bufsize from data thread

To ensure processing is always happening with the values emited
in the callback.
This commit is contained in:
Wim Taymans 2021-09-16 11:51:01 +02:00
parent cb1c259bc5
commit 2e17cc7901

View file

@ -1498,6 +1498,10 @@ do_update_driver_activation(struct spa_loop *loop,
struct client *c = user_data;
c->rt.position = c->position;
c->rt.driver_activation = c->driver_activation;
if (c->position) {
check_sample_rate(c, c->position);
check_buffer_frames(c, c->position);
}
return 0;
}
@ -1567,10 +1571,6 @@ 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) {
check_sample_rate(c, c->position);
check_buffer_frames(c, c->position);
}
break;
default:
break;