Commit e483b4a3 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Use base pin reference counting methods.

parent 42b3fd84
...@@ -45,18 +45,6 @@ static const IQualityControlVtbl Renderer_QualityControl_Vtbl = { ...@@ -45,18 +45,6 @@ static const IQualityControlVtbl Renderer_QualityControl_Vtbl = {
QualityControlImpl_SetSink QualityControlImpl_SetSink
}; };
static ULONG WINAPI BaseRenderer_InputPin_AddRef(IPin *iface)
{
BaseInputPin *pin = impl_BaseInputPin_from_IPin(iface);
return IBaseFilter_AddRef(pin->pin.pinInfo.pFilter);
}
static ULONG WINAPI BaseRenderer_InputPin_Release(IPin *iface)
{
BaseInputPin *pin = impl_BaseInputPin_from_IPin(iface);
return IBaseFilter_Release(pin->pin.pinInfo.pFilter);
}
static HRESULT WINAPI BaseRenderer_InputPin_ReceiveConnection(IPin * iface, IPin * pReceivePin, const AM_MEDIA_TYPE * pmt) static HRESULT WINAPI BaseRenderer_InputPin_ReceiveConnection(IPin * iface, IPin * pReceivePin, const AM_MEDIA_TYPE * pmt)
{ {
BaseInputPin *This = impl_BaseInputPin_from_IPin(iface); BaseInputPin *This = impl_BaseInputPin_from_IPin(iface);
...@@ -176,8 +164,8 @@ static HRESULT WINAPI BaseRenderer_InputPin_EndFlush(IPin * iface) ...@@ -176,8 +164,8 @@ static HRESULT WINAPI BaseRenderer_InputPin_EndFlush(IPin * iface)
static const IPinVtbl BaseRenderer_InputPin_Vtbl = static const IPinVtbl BaseRenderer_InputPin_Vtbl =
{ {
BaseInputPinImpl_QueryInterface, BaseInputPinImpl_QueryInterface,
BaseRenderer_InputPin_AddRef, BasePinImpl_AddRef,
BaseRenderer_InputPin_Release, BasePinImpl_Release,
BaseInputPinImpl_Connect, BaseInputPinImpl_Connect,
BaseRenderer_InputPin_ReceiveConnection, BaseRenderer_InputPin_ReceiveConnection,
BaseRenderer_InputPin_Disconnect, BaseRenderer_InputPin_Disconnect,
......
...@@ -381,18 +381,6 @@ HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *s ...@@ -381,18 +381,6 @@ HRESULT WINAPI TransformFilterImpl_Notify(TransformFilter *iface, IBaseFilter *s
return QualityControlImpl_Notify((IQualityControl*)iface->qcimpl, sender, qm); return QualityControlImpl_Notify((IQualityControl*)iface->qcimpl, sender, qm);
} }
static ULONG WINAPI TransformFilter_InputPin_AddRef(IPin *iface)
{
BaseInputPin *pin = impl_BaseInputPin_from_IPin(iface);
return IBaseFilter_AddRef(pin->pin.pinInfo.pFilter);
}
static ULONG WINAPI TransformFilter_InputPin_Release(IPin *iface)
{
BaseInputPin *pin = impl_BaseInputPin_from_IPin(iface);
return IBaseFilter_Release(pin->pin.pinInfo.pFilter);
}
static HRESULT WINAPI TransformFilter_InputPin_EndOfStream(IPin * iface) static HRESULT WINAPI TransformFilter_InputPin_EndOfStream(IPin * iface)
{ {
BaseInputPin* This = impl_BaseInputPin_from_IPin(iface); BaseInputPin* This = impl_BaseInputPin_from_IPin(iface);
...@@ -516,8 +504,8 @@ static HRESULT WINAPI TransformFilter_InputPin_NewSegment(IPin * iface, REFERENC ...@@ -516,8 +504,8 @@ static HRESULT WINAPI TransformFilter_InputPin_NewSegment(IPin * iface, REFERENC
static const IPinVtbl TransformFilter_InputPin_Vtbl = static const IPinVtbl TransformFilter_InputPin_Vtbl =
{ {
BaseInputPinImpl_QueryInterface, BaseInputPinImpl_QueryInterface,
TransformFilter_InputPin_AddRef, BasePinImpl_AddRef,
TransformFilter_InputPin_Release, BasePinImpl_Release,
BaseInputPinImpl_Connect, BaseInputPinImpl_Connect,
TransformFilter_InputPin_ReceiveConnection, TransformFilter_InputPin_ReceiveConnection,
TransformFilter_InputPin_Disconnect, TransformFilter_InputPin_Disconnect,
...@@ -555,23 +543,11 @@ static HRESULT WINAPI transform_source_QueryInterface(IPin *iface, REFIID iid, v ...@@ -555,23 +543,11 @@ static HRESULT WINAPI transform_source_QueryInterface(IPin *iface, REFIID iid, v
return S_OK; return S_OK;
} }
static ULONG WINAPI transform_source_AddRef(IPin *iface)
{
BaseOutputPin *pin = impl_BaseOutputPin_from_IPin(iface);
return IBaseFilter_AddRef(pin->pin.pinInfo.pFilter);
}
static ULONG WINAPI transform_source_Release(IPin *iface)
{
BaseOutputPin *pin = impl_BaseOutputPin_from_IPin(iface);
return IBaseFilter_Release(pin->pin.pinInfo.pFilter);
}
static const IPinVtbl TransformFilter_OutputPin_Vtbl = static const IPinVtbl TransformFilter_OutputPin_Vtbl =
{ {
transform_source_QueryInterface, transform_source_QueryInterface,
transform_source_AddRef, BasePinImpl_AddRef,
transform_source_Release, BasePinImpl_Release,
BaseOutputPinImpl_Connect, BaseOutputPinImpl_Connect,
BaseOutputPinImpl_ReceiveConnection, BaseOutputPinImpl_ReceiveConnection,
BaseOutputPinImpl_Disconnect, BaseOutputPinImpl_Disconnect,
......
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