strmbase: Get rid of BaseRendererImpl_QueryInterface().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
54e45dbf7d
commit
0d0f1e0ff7
|
@ -289,22 +289,6 @@ HRESULT WINAPI strmbase_renderer_init(BaseRenderer *This, const IBaseFilterVtbl
|
|||
return hr;
|
||||
}
|
||||
|
||||
HRESULT WINAPI BaseRendererImpl_QueryInterface(IBaseFilter* iface, REFIID riid, LPVOID * ppv)
|
||||
{
|
||||
BaseRenderer *This = impl_from_IBaseFilter(iface);
|
||||
|
||||
if (IsEqualIID(riid, &IID_IMediaSeeking) || IsEqualIID(riid, &IID_IMediaPosition))
|
||||
return IUnknown_QueryInterface(This->pPosition, riid, ppv);
|
||||
else if (IsEqualIID(riid, &IID_IQualityControl))
|
||||
{
|
||||
*ppv = &This->qcimpl->IQualityControl_iface;
|
||||
IUnknown_AddRef((IUnknown *)(*ppv));
|
||||
return S_OK;
|
||||
}
|
||||
else
|
||||
return BaseFilterImpl_QueryInterface(iface, riid, ppv);
|
||||
}
|
||||
|
||||
void strmbase_renderer_cleanup(BaseRenderer *filter)
|
||||
{
|
||||
IPin *peer;
|
||||
|
|
|
@ -611,7 +611,6 @@ typedef struct BaseRendererFuncTable {
|
|||
HRESULT (*renderer_query_interface)(BaseRenderer *iface, REFIID iid, void **out);
|
||||
} BaseRendererFuncTable;
|
||||
|
||||
HRESULT WINAPI BaseRendererImpl_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID * ppv);
|
||||
HRESULT WINAPI BaseRendererImpl_Receive(BaseRenderer *This, IMediaSample * pSample);
|
||||
HRESULT WINAPI BaseRendererImpl_Stop(IBaseFilter * iface);
|
||||
HRESULT WINAPI BaseRendererImpl_Run(IBaseFilter * iface, REFERENCE_TIME tStart);
|
||||
|
|
Loading…
Reference in New Issue