mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 08:45:44 +00:00
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:
parent
c8f629a0a3
commit
59203c11b8
|
@ -748,6 +748,7 @@ 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 { \
|
||||
if (c->active) \
|
||||
(expr); \
|
||||
pw_log_debug("skip " #callback \
|
||||
" cb:%p active:%d", c->callback, \
|
||||
|
|
Loading…
Reference in a new issue