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:
Maarten Lankhorst 2010-11-11 23:22:59 +01:00 committed by Alexandre Julliard
parent 34d4b5a227
commit 096da45036
1 changed files with 2 additions and 0 deletions

View File

@ -267,7 +267,9 @@ static HRESULT WINAPI Gstreamer_transform_ProcessEnd(TransformFilter *iface) {
GstTfImpl *This = (GstTfImpl*)iface; GstTfImpl *This = (GstTfImpl*)iface;
int ret; int ret;
LeaveCriticalSection(&This->tf.filter.csFilter);
ret = gst_element_set_state(This->filter, GST_STATE_READY); ret = gst_element_set_state(This->filter, GST_STATE_READY);
EnterCriticalSection(&This->tf.filter.csFilter);
TRACE("Returned: %i\n", ret); TRACE("Returned: %i\n", ret);
return S_OK; return S_OK;
} }