pulsesink: Fix deadlock if connecting to PA fails
Commit dd4ec22e introduced a deadlock in the failure path while trying to connect to PulseAudio. This makes sure we drop the lock on the resource mutex to avoid this. https://bugzilla.gnome.org/show_bug.cgi?id=644510
This commit is contained in:
parent
9bfa7defdf
commit
387f533a07
@ -527,6 +527,7 @@ gst_pulseringbuffer_open_device (GstRingBuffer * buf)
|
|||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
unlock_and_fail:
|
unlock_and_fail:
|
||||||
{
|
{
|
||||||
|
g_mutex_unlock (pa_shared_resource_mutex);
|
||||||
gst_pulsering_destroy_context (pbuf);
|
gst_pulsering_destroy_context (pbuf);
|
||||||
pa_threaded_mainloop_unlock (mainloop);
|
pa_threaded_mainloop_unlock (mainloop);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user