Commit a18bc50f authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

winegstreamer: Commit allocator before pausing the stream.

parent 17529582
...@@ -1391,6 +1391,15 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface) ...@@ -1391,6 +1391,15 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface)
if (!filter->container) if (!filter->container)
return VFW_E_NOT_CONNECTED; return VFW_E_NOT_CONNECTED;
for (i = 0; i < filter->source_count; ++i)
{
if (SUCCEEDED(pin_hr = BaseOutputPinImpl_Active(&filter->sources[i]->pin)))
hr = pin_hr;
}
if (FAILED(hr))
return hr;
if (filter->no_more_pads_event) if (filter->no_more_pads_event)
ResetEvent(filter->no_more_pads_event); ResetEvent(filter->no_more_pads_event);
...@@ -1422,11 +1431,6 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface) ...@@ -1422,11 +1431,6 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface)
stop_type, seeking->llStop * 100)); stop_type, seeking->llStop * 100));
} }
for (i = 0; i < filter->source_count; ++i)
{
if (SUCCEEDED(pin_hr = BaseOutputPinImpl_Active(&filter->sources[i]->pin)))
hr = pin_hr;
}
return hr; return 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