[pulseaudio-discuss] [PATCH] thread-mq: Initialize thread_mainloop to NULL if not in use
Tanu Kaskinen
tanu.kaskinen at linux.intel.com
Fri Dec 20 02:57:28 PST 2013
On Tue, 2013-12-17 at 00:07 +0100, Jan Alexander Steffens (heftig)
wrote:
> 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));
>
Thanks! I applied the patch.
--
Tanu
More information about the pulseaudio-discuss
mailing list