qedit/samplegrabber: Correctly delegate IUnknown methods on the IMemInputPin interface.

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-05-17 00:31:04 -05:00 committed by Alexandre Julliard
parent 69e654a684
commit 5351870ea1
1 changed files with 9 additions and 18 deletions

View File

@ -672,31 +672,22 @@ SampleGrabber_ISampleGrabber_SetCallback(ISampleGrabber *iface, ISampleGrabberCB
return S_OK;
}
/* SampleGrabber implementation of IMemInputPin interface */
/* IUnknown */
static HRESULT WINAPI
SampleGrabber_IMemInputPin_QueryInterface(IMemInputPin *iface, REFIID riid, void **ppv)
static HRESULT WINAPI SampleGrabber_IMemInputPin_QueryInterface(IMemInputPin *iface, REFIID iid, void **out)
{
SG_Impl *This = impl_from_IMemInputPin(iface);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv);
SG_Impl *filter = impl_from_IMemInputPin(iface);
return IPin_QueryInterface(&filter->pin_in.IPin_iface, iid, out);
}
/* IUnknown */
static ULONG WINAPI
SampleGrabber_IMemInputPin_AddRef(IMemInputPin *iface)
static ULONG WINAPI SampleGrabber_IMemInputPin_AddRef(IMemInputPin *iface)
{
SG_Impl *This = impl_from_IMemInputPin(iface);
return IUnknown_AddRef(This->outer_unk);
SG_Impl *filter = impl_from_IMemInputPin(iface);
return IPin_AddRef(&filter->pin_in.IPin_iface);
}
/* IUnknown */
static ULONG WINAPI
SampleGrabber_IMemInputPin_Release(IMemInputPin *iface)
static ULONG WINAPI SampleGrabber_IMemInputPin_Release(IMemInputPin *iface)
{
SG_Impl *This = impl_from_IMemInputPin(iface);
return IUnknown_Release(This->outer_unk);
SG_Impl *filter = impl_from_IMemInputPin(iface);
return IPin_Release(&filter->pin_in.IPin_iface);
}
/* IMemInputPin */