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.
This commit is contained in:
parent
34d4b5a227
commit
096da45036
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue