mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue