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

qcap: Use CBaseFilter::FindPin().

parent d69a26b2
...@@ -152,13 +152,6 @@ static HRESULT WINAPI AudioRecord_Run(IBaseFilter *iface, REFERENCE_TIME tStart) ...@@ -152,13 +152,6 @@ static HRESULT WINAPI AudioRecord_Run(IBaseFilter *iface, REFERENCE_TIME tStart)
return E_NOTIMPL; return E_NOTIMPL;
} }
static HRESULT WINAPI AudioRecord_FindPin(IBaseFilter *iface, LPCWSTR Id, IPin **ppPin)
{
AudioRecord *This = impl_from_IBaseFilter(iface);
FIXME("(%p)->(%s, %p): stub\n", This, debugstr_w(Id), ppPin);
return E_NOTIMPL;
}
static const IBaseFilterVtbl AudioRecordVtbl = { static const IBaseFilterVtbl AudioRecordVtbl = {
AudioRecord_QueryInterface, AudioRecord_QueryInterface,
AudioRecord_AddRef, AudioRecord_AddRef,
...@@ -171,7 +164,7 @@ static const IBaseFilterVtbl AudioRecordVtbl = { ...@@ -171,7 +164,7 @@ static const IBaseFilterVtbl AudioRecordVtbl = {
BaseFilterImpl_SetSyncSource, BaseFilterImpl_SetSyncSource,
BaseFilterImpl_GetSyncSource, BaseFilterImpl_GetSyncSource,
BaseFilterImpl_EnumPins, BaseFilterImpl_EnumPins,
AudioRecord_FindPin, BaseFilterImpl_FindPin,
BaseFilterImpl_QueryFilterInfo, BaseFilterImpl_QueryFilterInfo,
BaseFilterImpl_JoinFilterGraph, BaseFilterImpl_JoinFilterGraph,
BaseFilterImpl_QueryVendorInfo BaseFilterImpl_QueryVendorInfo
......
...@@ -211,13 +211,6 @@ static HRESULT WINAPI AVICompressor_Run(IBaseFilter *iface, REFERENCE_TIME tStar ...@@ -211,13 +211,6 @@ static HRESULT WINAPI AVICompressor_Run(IBaseFilter *iface, REFERENCE_TIME tStar
return S_OK; return S_OK;
} }
static HRESULT WINAPI AVICompressor_FindPin(IBaseFilter *iface, LPCWSTR Id, IPin **ppPin)
{
AVICompressor *This = impl_from_IBaseFilter(iface);
FIXME("(%p)->(%s %p)\n", This, debugstr_w(Id), ppPin);
return VFW_E_NOT_FOUND;
}
static HRESULT WINAPI AVICompressor_QueryFilterInfo(IBaseFilter *iface, FILTER_INFO *pInfo) static HRESULT WINAPI AVICompressor_QueryFilterInfo(IBaseFilter *iface, FILTER_INFO *pInfo)
{ {
AVICompressor *This = impl_from_IBaseFilter(iface); AVICompressor *This = impl_from_IBaseFilter(iface);
...@@ -244,7 +237,7 @@ static const IBaseFilterVtbl AVICompressorVtbl = { ...@@ -244,7 +237,7 @@ static const IBaseFilterVtbl AVICompressorVtbl = {
BaseFilterImpl_SetSyncSource, BaseFilterImpl_SetSyncSource,
BaseFilterImpl_GetSyncSource, BaseFilterImpl_GetSyncSource,
BaseFilterImpl_EnumPins, BaseFilterImpl_EnumPins,
AVICompressor_FindPin, BaseFilterImpl_FindPin,
AVICompressor_QueryFilterInfo, AVICompressor_QueryFilterInfo,
BaseFilterImpl_JoinFilterGraph, BaseFilterImpl_JoinFilterGraph,
AVICompressor_QueryVendorInfo AVICompressor_QueryVendorInfo
......
...@@ -180,26 +180,6 @@ static HRESULT WINAPI SmartTeeFilter_Run(IBaseFilter *iface, REFERENCE_TIME tSta ...@@ -180,26 +180,6 @@ static HRESULT WINAPI SmartTeeFilter_Run(IBaseFilter *iface, REFERENCE_TIME tSta
return hr; return hr;
} }
static HRESULT WINAPI SmartTeeFilter_FindPin(IBaseFilter *iface, LPCWSTR Id, IPin **ppPin)
{
SmartTeeFilter *This = impl_from_IBaseFilter(iface);
TRACE("(%p)->(%s, %p)\n", This, debugstr_w(Id), ppPin);
if (lstrcmpW(Id, This->input->pin.pinInfo.achName) == 0) {
*ppPin = &This->input->pin.IPin_iface;
IPin_AddRef(*ppPin);
return S_OK;
} else if (lstrcmpW(Id, This->capture->pin.pinInfo.achName) == 0) {
*ppPin = &This->capture->pin.IPin_iface;
IPin_AddRef(*ppPin);
return S_OK;
} else if (lstrcmpW(Id, This->preview->pin.pinInfo.achName) == 0) {
*ppPin = &This->preview->pin.IPin_iface;
IPin_AddRef(*ppPin);
return S_OK;
}
return VFW_E_NOT_FOUND;
}
static const IBaseFilterVtbl SmartTeeFilterVtbl = { static const IBaseFilterVtbl SmartTeeFilterVtbl = {
SmartTeeFilter_QueryInterface, SmartTeeFilter_QueryInterface,
SmartTeeFilter_AddRef, SmartTeeFilter_AddRef,
...@@ -212,7 +192,7 @@ static const IBaseFilterVtbl SmartTeeFilterVtbl = { ...@@ -212,7 +192,7 @@ static const IBaseFilterVtbl SmartTeeFilterVtbl = {
BaseFilterImpl_SetSyncSource, BaseFilterImpl_SetSyncSource,
BaseFilterImpl_GetSyncSource, BaseFilterImpl_GetSyncSource,
BaseFilterImpl_EnumPins, BaseFilterImpl_EnumPins,
SmartTeeFilter_FindPin, BaseFilterImpl_FindPin,
BaseFilterImpl_QueryFilterInfo, BaseFilterImpl_QueryFilterInfo,
BaseFilterImpl_JoinFilterGraph, BaseFilterImpl_JoinFilterGraph,
BaseFilterImpl_QueryVendorInfo BaseFilterImpl_QueryVendorInfo
......
...@@ -298,13 +298,6 @@ static HRESULT WINAPI VfwCapture_Run(IBaseFilter * iface, REFERENCE_TIME tStart) ...@@ -298,13 +298,6 @@ static HRESULT WINAPI VfwCapture_Run(IBaseFilter * iface, REFERENCE_TIME tStart)
return qcap_driver_run(This->driver_info, &This->filter.state); return qcap_driver_run(This->driver_info, &This->filter.state);
} }
/** IBaseFilter methods **/
static HRESULT WINAPI VfwCapture_FindPin(IBaseFilter * iface, LPCWSTR Id, IPin **ppPin)
{
FIXME("(%s, %p) - stub\n", debugstr_w(Id), ppPin);
return E_NOTIMPL;
}
static const IBaseFilterVtbl VfwCapture_Vtbl = static const IBaseFilterVtbl VfwCapture_Vtbl =
{ {
VfwCapture_QueryInterface, VfwCapture_QueryInterface,
...@@ -318,7 +311,7 @@ static const IBaseFilterVtbl VfwCapture_Vtbl = ...@@ -318,7 +311,7 @@ static const IBaseFilterVtbl VfwCapture_Vtbl =
BaseFilterImpl_SetSyncSource, BaseFilterImpl_SetSyncSource,
BaseFilterImpl_GetSyncSource, BaseFilterImpl_GetSyncSource,
BaseFilterImpl_EnumPins, BaseFilterImpl_EnumPins,
VfwCapture_FindPin, BaseFilterImpl_FindPin,
BaseFilterImpl_QueryFilterInfo, BaseFilterImpl_QueryFilterInfo,
BaseFilterImpl_JoinFilterGraph, BaseFilterImpl_JoinFilterGraph,
BaseFilterImpl_QueryVendorInfo BaseFilterImpl_QueryVendorInfo
......
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