jack: only call callbacks when active

JACK applications expect the callbacks only when activated.

Fixes #1461
This commit is contained in:
Wim Taymans 2021-07-26 23:03:04 +02:00
parent dd5b460daa
commit 40f1d2b881

View file

@ -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__); \