From 47f7802c2ed26f6f2cfcc3112de4c208251d5ca1 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 20 Jul 2023 15:30:01 +0200 Subject: [PATCH] module-rt: wait for thread start So that we always invoke in the thread. See #3357 --- src/modules/module-rt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/module-rt.c b/src/modules/module-rt.c index f482872d5..2d34e2bcb 100644 --- a/src/modules/module-rt.c +++ b/src/modules/module-rt.c @@ -1078,6 +1078,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args) } pw_thread_loop_lock(impl->thread_loop); pw_thread_loop_start(impl->thread_loop); + pw_thread_loop_wait(impl->thread_loop); pw_thread_loop_unlock(impl->thread_loop); pw_loop_invoke(pw_thread_loop_get_loop(impl->thread_loop),