[pulseaudio-discuss] pa_simple_free
Daniel Mack
zonque at gmail.com
Thu Apr 7 10:20:32 PDT 2011
On Thu, Apr 7, 2011 at 7:15 PM, patrick <puredata at 11h11.com> wrote:
> more informations about our problem:
>
> in thread-mainloop.c
>
> void pa_threaded_mainloop_stop(pa_threaded_mainloop *m) {
> ...
> // freeze here:
> pa_mutex_lock(m->mutex);
> ...
> }
>
> what would be the cause? it stop at pa_mutex_lock(m->mutex). what can i do
> to fix this problem? any advice is more than welcome.
Are your calling pa_threaded_mainloop_stop() while the mainloop is
locked? IOW, did you call pa_threaded_mainloop_lock() without
pa_threaded_mainloop_unlock() before?
Quoting the documentation:
> void pa_threaded_mainloop_stop ( pa_threaded_mainloop * m )
> Terminate the event loop thread cleanly.
> Make sure to unlock the mainloop object before calling this function.
Daniel
More information about the pulseaudio-discuss
mailing list