Commit 5351870e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent 69e654a6
...@@ -672,31 +672,22 @@ SampleGrabber_ISampleGrabber_SetCallback(ISampleGrabber *iface, ISampleGrabberCB ...@@ -672,31 +672,22 @@ SampleGrabber_ISampleGrabber_SetCallback(ISampleGrabber *iface, ISampleGrabberCB
return S_OK; return S_OK;
} }
static HRESULT WINAPI SampleGrabber_IMemInputPin_QueryInterface(IMemInputPin *iface, REFIID iid, void **out)
/* SampleGrabber implementation of IMemInputPin interface */
/* IUnknown */
static HRESULT WINAPI
SampleGrabber_IMemInputPin_QueryInterface(IMemInputPin *iface, REFIID riid, void **ppv)
{ {
SG_Impl *This = impl_from_IMemInputPin(iface); SG_Impl *filter = impl_from_IMemInputPin(iface);
return IUnknown_QueryInterface(This->outer_unk, riid, ppv); 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); SG_Impl *filter = impl_from_IMemInputPin(iface);
return IUnknown_AddRef(This->outer_unk); 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); SG_Impl *filter = impl_from_IMemInputPin(iface);
return IUnknown_Release(This->outer_unk); return IPin_Release(&filter->pin_in.IPin_iface);
} }
/* IMemInputPin */ /* IMemInputPin */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment