mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
wasapisink: fix missing unlock in case IAudioClient_Start fails
https://bugzilla.gnome.org/show_bug.cgi?id=796354
This commit is contained in:
parent
2d98a5c1d7
commit
ffb8476a38
1 changed files with 2 additions and 1 deletions
|
@ -613,7 +613,8 @@ gst_wasapi_sink_write (GstAudioSink * asink, gpointer data, guint length)
|
|||
GST_OBJECT_LOCK (self);
|
||||
if (self->client_needs_restart) {
|
||||
hr = IAudioClient_Start (self->client);
|
||||
HR_FAILED_AND (hr, IAudioClient::Start, length = 0; goto beach);
|
||||
HR_FAILED_AND (hr, IAudioClient::Start,
|
||||
GST_OBJECT_UNLOCK (self); length = 0; goto beach);
|
||||
self->client_needs_restart = FALSE;
|
||||
}
|
||||
GST_OBJECT_UNLOCK (self);
|
||||
|
|
Loading…
Reference in a new issue