Commit 096da450 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winegstreamer: Fix deadlock when changing state.

Leaving the lock is legal and required here since gstreamer has its own locking in place. gst_pad_push could otherwise deadlock.
parent 34d4b5a2
......@@ -267,7 +267,9 @@ static HRESULT WINAPI Gstreamer_transform_ProcessEnd(TransformFilter *iface) {
GstTfImpl *This = (GstTfImpl*)iface;
int ret;
LeaveCriticalSection(&This->tf.filter.csFilter);
ret = gst_element_set_state(This->filter, GST_STATE_READY);
EnterCriticalSection(&This->tf.filter.csFilter);
TRACE("Returned: %i\n", ret);
return S_OK;
}
......
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