mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-09-06 16:56:00 +00:00
jack: only call callbacks when active
JACK applications expect the callbacks only when activated. Fixes #1461
This commit is contained in:
parent
dd5b460daa
commit
40f1d2b881
|
@ -718,7 +718,7 @@ void jack_get_version(int *major_ptr, int *minor_ptr, int *micro_ptr, int *proto
|
|||
|
||||
#define do_callback(c,callback,...) \
|
||||
({ \
|
||||
if (c->callback) { \
|
||||
if (c->callback && c->active) { \
|
||||
pw_thread_loop_unlock(c->context.loop); \
|
||||
pthread_mutex_lock(&c->rt_lock); \
|
||||
c->callback(__VA_ARGS__); \
|
||||
|
|
Loading…
Reference in a new issue