[pulseaudio-discuss] [PATCH] thread-mq: Initialize thread_mainloop to NULL if not in use
Jan Alexander Steffens (heftig)
jan.steffens at gmail.com
Mon Dec 16 15:07:11 PST 2013
Fixes a crash when unloading module-zeroconf-publish.
Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
---
src/pulsecore/thread-mq.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/pulsecore/thread-mq.c b/src/pulsecore/thread-mq.c
index 0759586..d34b22b 100644
--- a/src/pulsecore/thread-mq.c
+++ b/src/pulsecore/thread-mq.c
@@ -126,6 +126,8 @@ void pa_thread_mq_init(pa_thread_mq *q, pa_mainloop_api *mainloop, pa_rtpoll *rt
pa_assert(mainloop);
q->main_mainloop = mainloop;
+ q->thread_mainloop = NULL;
+
pa_assert_se(q->inq = pa_asyncmsgq_new(0));
pa_assert_se(q->outq = pa_asyncmsgq_new(0));
--
1.8.5.1
More information about the pulseaudio-discuss
mailing list