strmbase: Get rid of BaseRendererImpl_BeginFlush().

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-11-27 19:27:15 -06:00 committed by Alexandre Julliard
parent 09b39646b0
commit 0011be7fdd
2 changed files with 4 additions and 10 deletions

View File

@ -108,7 +108,10 @@ static HRESULT WINAPI BaseRenderer_InputPin_BeginFlush(IPin * iface)
EnterCriticalSection(&pFilter->filter.csFilter);
hr = BaseInputPinImpl_BeginFlush(iface);
if (SUCCEEDED(hr))
hr = BaseRendererImpl_BeginFlush(pFilter);
{
BaseRendererImpl_ClearPendingSample(pFilter);
SetEvent(pFilter->flush_event);
}
LeaveCriticalSection(&pFilter->filter.csFilter);
LeaveCriticalSection(&pFilter->csRenderLock);
return hr;
@ -476,14 +479,6 @@ HRESULT WINAPI BaseRendererImpl_EndOfStream(struct strmbase_renderer *iface)
return hr;
}
HRESULT WINAPI BaseRendererImpl_BeginFlush(struct strmbase_renderer *iface)
{
TRACE("(%p)\n", iface);
BaseRendererImpl_ClearPendingSample(iface);
SetEvent(iface->flush_event);
return S_OK;
}
HRESULT WINAPI BaseRendererImpl_EndFlush(struct strmbase_renderer *iface)
{
TRACE("(%p)\n", iface);

View File

@ -567,7 +567,6 @@ struct strmbase_renderer_ops
HRESULT (*renderer_pin_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out);
};
HRESULT WINAPI BaseRendererImpl_BeginFlush(struct strmbase_renderer *filter);
HRESULT WINAPI BaseRendererImpl_ClearPendingSample(struct strmbase_renderer *filter);
HRESULT WINAPI BaseRendererImpl_EndOfStream(struct strmbase_renderer *filter);
HRESULT WINAPI BaseRendererImpl_EndFlush(struct strmbase_renderer *filter);