Commit 078ac0f7 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

winegstreamer: Also wait for the no-more-pads signal when pausing the filter.

parent 7a0d963d
......@@ -1416,8 +1416,17 @@ static HRESULT WINAPI GST_Run(IBaseFilter *iface, REFERENCE_TIME tStart)
}
EnterCriticalSection(&This->filter.csFilter);
if (This->no_more_pads_event)
ResetEvent(This->no_more_pads_event);
gst_element_set_state(This->container, GST_STATE_PLAYING);
/* Make sure that all of our pads are connected before returning, lest we
* e.g. try to seek and fail. */
if (This->no_more_pads_event)
WaitForSingleObject(This->no_more_pads_event, INFINITE);
for (i = 0; i < This->cStreams; i++) {
hr = BaseOutputPinImpl_Active(&This->ppPins[i]->pin);
if (SUCCEEDED(hr)) {
......
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