module-rt: wait for thread start

So that we always invoke in the thread.

See #3357
This commit is contained in:
Wim Taymans 2023-07-20 15:30:01 +02:00
parent 33be898130
commit 47f7802c2e

View file

@ -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),