strmbase: Add default implementations of IUnknown methods for IBasicVideo.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9afc341c4f
commit
96b6f0e1d6
|
@ -70,6 +70,24 @@ static HRESULT BaseControlVideoImpl_CheckTargetRect(BaseControlVideo *This, RECT
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HRESULT WINAPI BaseControlVideoImpl_QueryInterface(IBasicVideo *iface, REFIID iid, void **out)
|
||||||
|
{
|
||||||
|
BaseControlVideo *video = impl_from_IBasicVideo(iface);
|
||||||
|
return IUnknown_QueryInterface(video->pFilter->outer_unk, iid, out);
|
||||||
|
}
|
||||||
|
|
||||||
|
ULONG WINAPI BaseControlVideoImpl_AddRef(IBasicVideo *iface)
|
||||||
|
{
|
||||||
|
BaseControlVideo *video = impl_from_IBasicVideo(iface);
|
||||||
|
return IUnknown_AddRef(video->pFilter->outer_unk);
|
||||||
|
}
|
||||||
|
|
||||||
|
ULONG WINAPI BaseControlVideoImpl_Release(IBasicVideo *iface)
|
||||||
|
{
|
||||||
|
BaseControlVideo *video = impl_from_IBasicVideo(iface);
|
||||||
|
return IUnknown_Release(video->pFilter->outer_unk);
|
||||||
|
}
|
||||||
|
|
||||||
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfoCount(IBasicVideo *iface, UINT *count)
|
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfoCount(IBasicVideo *iface, UINT *count)
|
||||||
{
|
{
|
||||||
TRACE("iface %p, count %p.\n", iface, count);
|
TRACE("iface %p, count %p.\n", iface, count);
|
||||||
|
|
|
@ -517,6 +517,9 @@ typedef struct BaseControlVideoFuncTable {
|
||||||
HRESULT WINAPI BaseControlVideo_Init(BaseControlVideo *pControlVideo, const IBasicVideoVtbl *lpVtbl, BaseFilter *owner, CRITICAL_SECTION *lock, BasePin* pPin, const BaseControlVideoFuncTable* pFuncsTable);
|
HRESULT WINAPI BaseControlVideo_Init(BaseControlVideo *pControlVideo, const IBasicVideoVtbl *lpVtbl, BaseFilter *owner, CRITICAL_SECTION *lock, BasePin* pPin, const BaseControlVideoFuncTable* pFuncsTable);
|
||||||
HRESULT WINAPI BaseControlVideo_Destroy(BaseControlVideo *pControlVideo);
|
HRESULT WINAPI BaseControlVideo_Destroy(BaseControlVideo *pControlVideo);
|
||||||
|
|
||||||
|
HRESULT WINAPI BaseControlVideoImpl_QueryInterface(IBasicVideo *iface, REFIID iid, void **out);
|
||||||
|
ULONG WINAPI BaseControlVideoImpl_AddRef(IBasicVideo *iface);
|
||||||
|
ULONG WINAPI BaseControlVideoImpl_Release(IBasicVideo *iface);
|
||||||
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfoCount(IBasicVideo *iface, UINT*pctinfo);
|
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfoCount(IBasicVideo *iface, UINT*pctinfo);
|
||||||
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfo(IBasicVideo *iface, UINT iTInfo, LCID lcid, ITypeInfo**ppTInfo);
|
HRESULT WINAPI BaseControlVideoImpl_GetTypeInfo(IBasicVideo *iface, UINT iTInfo, LCID lcid, ITypeInfo**ppTInfo);
|
||||||
HRESULT WINAPI BaseControlVideoImpl_GetIDsOfNames(IBasicVideo *iface, REFIID riid, LPOLESTR*rgszNames, UINT cNames, LCID lcid, DISPID*rgDispId);
|
HRESULT WINAPI BaseControlVideoImpl_GetIDsOfNames(IBasicVideo *iface, REFIID riid, LPOLESTR*rgszNames, UINT cNames, LCID lcid, DISPID*rgDispId);
|
||||||
|
|
Loading…
Reference in New Issue