jack: only update buffer_size/srate when active

As long as we are inactive, don't update our internal buffer_size or
sample rate. This way, when we become active, we will emit the right
callback with the right value instead of doing nothing.

Fixes crashes in Carla.
This commit is contained in:
Wim Taymans 2021-09-21 18:29:20 +02:00
parent c8f629a0a3
commit 59203c11b8

View file

@ -748,7 +748,8 @@ void jack_get_version(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto
pthread_mutex_unlock(&c->rt_lock); \
pw_thread_loop_lock(c->context.loop); \
} else { \
(expr); \
if (c->active) \
(expr); \
pw_log_debug("skip " #callback \
" cb:%p active:%d", c->callback, \
c->active); \