Commit 3803fa29 authored by Silvio Lazzeretti's avatar Silvio Lazzeretti Committed by GStreamer Merge Bot

wasapi: added missing lock release in case of error in gst_wasapi_xxx_reset

Part-of: <!1440>
parent e6944da1
Pipeline #177449 waiting for manual action with stages
in 2 minutes and 38 seconds
......@@ -746,11 +746,12 @@ gst_wasapi_sink_reset (GstAudioSink * asink)
GST_OBJECT_LOCK (self);
hr = IAudioClient_Stop (self->client);
HR_FAILED_AND (hr, IAudioClient::Stop,);
HR_FAILED_AND (hr, IAudioClient::Stop, goto err);
hr = IAudioClient_Reset (self->client);
HR_FAILED_AND (hr, IAudioClient::Reset,);
HR_FAILED_AND (hr, IAudioClient::Reset, goto err);
err:
self->client_needs_restart = TRUE;
GST_OBJECT_UNLOCK (self);
}
......@@ -713,11 +713,12 @@ gst_wasapi_src_reset (GstAudioSrc * asrc)
GST_OBJECT_LOCK (self);
hr = IAudioClient_Stop (self->client);
HR_FAILED_RET (hr, IAudioClock::Stop,);
HR_FAILED_AND (hr, IAudioClock::Stop, goto err);
hr = IAudioClient_Reset (self->client);
HR_FAILED_RET (hr, IAudioClock::Reset,);
HR_FAILED_AND (hr, IAudioClock::Reset, goto err);
err:
self->client_needs_restart = TRUE;
GST_OBJECT_UNLOCK (self);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment