winegstreamer: Commit allocator before pausing the stream.

Signed-off-by: Anton Baskanov <baskanov@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
feature/deterministic
Anton Baskanov 2020-06-09 01:00:55 +07:00 committed by Alexandre Julliard
parent 1752958240
commit a18bc50f2f
1 changed files with 9 additions and 5 deletions

View File

@ -1391,6 +1391,15 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface)
if (!filter->container)
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)
ResetEvent(filter->no_more_pads_event);
@ -1422,11 +1431,6 @@ static HRESULT gstdemux_init_stream(struct strmbase_filter *iface)
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;
}