Commit cb2d4027 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

winegstreamer: Update transform filters to use the correct csReceive critical section.

parent 0eb9740e
...@@ -225,11 +225,11 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM ...@@ -225,11 +225,11 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
int ret; int ret;
TRACE("Reading %p\n", sample); TRACE("Reading %p\n", sample);
EnterCriticalSection(&This->tf.filter.csFilter); EnterCriticalSection(&This->tf.csReceive);
IMediaSample_GetPointer(sample, &data); IMediaSample_GetPointer(sample, &data);
buf = gst_app_buffer_new(data, IMediaSample_GetActualDataLength(sample), release_sample, sample); buf = gst_app_buffer_new(data, IMediaSample_GetActualDataLength(sample), release_sample, sample);
if (!buf) { if (!buf) {
LeaveCriticalSection(&This->tf.filter.csFilter); LeaveCriticalSection(&This->tf.csReceive);
return S_OK; return S_OK;
} }
gst_buffer_set_caps(buf, gst_pad_get_caps_reffed(This->my_src)); gst_buffer_set_caps(buf, gst_pad_get_caps_reffed(This->my_src));
...@@ -251,7 +251,7 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM ...@@ -251,7 +251,7 @@ static HRESULT WINAPI Gstreamer_transform_ProcessData(TransformFilter *iface, IM
GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_PREROLL); GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_PREROLL);
if (IMediaSample_IsSyncPoint(sample) != S_OK) if (IMediaSample_IsSyncPoint(sample) != S_OK)
GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_DELTA_UNIT); GST_BUFFER_FLAG_SET(buf, GST_BUFFER_FLAG_DELTA_UNIT);
LeaveCriticalSection(&This->tf.filter.csFilter); LeaveCriticalSection(&This->tf.csReceive);
ret = gst_pad_push(This->my_src, buf); ret = gst_pad_push(This->my_src, buf);
if (ret) if (ret)
WARN("Sending returned: %i\n", ret); WARN("Sending returned: %i\n", ret);
...@@ -268,9 +268,9 @@ static HRESULT WINAPI Gstreamer_transform_ProcessEnd(TransformFilter *iface) { ...@@ -268,9 +268,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); LeaveCriticalSection(&This->tf.csReceive);
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); EnterCriticalSection(&This->tf.csReceive);
TRACE("Returned: %i\n", ret); TRACE("Returned: %i\n", ret);
return S_OK; 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