mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -527,6 +527,7 @@ gst_pulseringbuffer_open_device (GstRingBuffer * buf)
|
|||
/* ERRORS */
|
||||
unlock_and_fail:
|
||||
{
|
||||
g_mutex_unlock (pa_shared_resource_mutex);
|
||||
gst_pulsering_destroy_context (pbuf);
|
||||
pa_threaded_mainloop_unlock (mainloop);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue