strmbase/transform: Don't expose IQualityControl from the filter.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2a52c54f43
commit
c1b8ffde91
|
@ -76,7 +76,7 @@ static void test_interfaces(void)
|
||||||
check_interface(filter, &IID_IMediaPosition, FALSE);
|
check_interface(filter, &IID_IMediaPosition, FALSE);
|
||||||
check_interface(filter, &IID_IMediaSeeking, FALSE);
|
check_interface(filter, &IID_IMediaSeeking, FALSE);
|
||||||
check_interface(filter, &IID_IPin, FALSE);
|
check_interface(filter, &IID_IPin, FALSE);
|
||||||
todo_wine check_interface(filter, &IID_IQualityControl, FALSE);
|
check_interface(filter, &IID_IQualityControl, FALSE);
|
||||||
check_interface(filter, &IID_IQualProp, FALSE);
|
check_interface(filter, &IID_IQualProp, FALSE);
|
||||||
check_interface(filter, &IID_IReferenceClock, FALSE);
|
check_interface(filter, &IID_IReferenceClock, FALSE);
|
||||||
check_interface(filter, &IID_IVideoWindow, FALSE);
|
check_interface(filter, &IID_IVideoWindow, FALSE);
|
||||||
|
|
|
@ -101,7 +101,7 @@ static void test_interfaces(void)
|
||||||
check_interface(filter, &IID_IMediaSeeking, FALSE);
|
check_interface(filter, &IID_IMediaSeeking, FALSE);
|
||||||
check_interface(filter, &IID_IPersistPropertyBag, FALSE);
|
check_interface(filter, &IID_IPersistPropertyBag, FALSE);
|
||||||
check_interface(filter, &IID_IPin, FALSE);
|
check_interface(filter, &IID_IPin, FALSE);
|
||||||
todo_wine check_interface(filter, &IID_IQualityControl, FALSE);
|
check_interface(filter, &IID_IQualityControl, FALSE);
|
||||||
check_interface(filter, &IID_IQualProp, FALSE);
|
check_interface(filter, &IID_IQualProp, FALSE);
|
||||||
check_interface(filter, &IID_IReferenceClock, FALSE);
|
check_interface(filter, &IID_IReferenceClock, FALSE);
|
||||||
check_interface(filter, &IID_IVideoWindow, FALSE);
|
check_interface(filter, &IID_IVideoWindow, FALSE);
|
||||||
|
|
|
@ -161,26 +161,6 @@ static const BaseOutputPinFuncTable tf_output_BaseOutputFuncTable = {
|
||||||
BaseOutputPinImpl_DecideAllocator,
|
BaseOutputPinImpl_DecideAllocator,
|
||||||
};
|
};
|
||||||
|
|
||||||
static HRESULT WINAPI TransformFilterImpl_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID * ppv)
|
|
||||||
{
|
|
||||||
HRESULT hr;
|
|
||||||
TransformFilter *This = impl_from_IBaseFilter(iface);
|
|
||||||
TRACE("(%p/%p)->(%s, %p)\n", This, iface, debugstr_guid(riid), ppv);
|
|
||||||
|
|
||||||
if (IsEqualIID(riid, &IID_IQualityControl)) {
|
|
||||||
*ppv = (IQualityControl*)This->qcimpl;
|
|
||||||
IUnknown_AddRef((IUnknown*)*ppv);
|
|
||||||
return S_OK;
|
|
||||||
}
|
|
||||||
hr = BaseFilterImpl_QueryInterface(iface, riid, ppv);
|
|
||||||
|
|
||||||
if (FAILED(hr) && !IsEqualIID(riid, &IID_IPin) && !IsEqualIID(riid, &IID_IVideoWindow) &&
|
|
||||||
!IsEqualIID(riid, &IID_IAMFilterMiscFlags))
|
|
||||||
FIXME("No interface for %s!\n", debugstr_guid(riid));
|
|
||||||
|
|
||||||
return hr;
|
|
||||||
}
|
|
||||||
|
|
||||||
static ULONG WINAPI TransformFilterImpl_Release(IBaseFilter * iface)
|
static ULONG WINAPI TransformFilterImpl_Release(IBaseFilter * iface)
|
||||||
{
|
{
|
||||||
TransformFilter *This = impl_from_IBaseFilter(iface);
|
TransformFilter *This = impl_from_IBaseFilter(iface);
|
||||||
|
@ -293,7 +273,7 @@ static HRESULT WINAPI TransformFilterImpl_Run(IBaseFilter *iface, REFERENCE_TIME
|
||||||
|
|
||||||
static const IBaseFilterVtbl transform_vtbl =
|
static const IBaseFilterVtbl transform_vtbl =
|
||||||
{
|
{
|
||||||
TransformFilterImpl_QueryInterface,
|
BaseFilterImpl_QueryInterface,
|
||||||
BaseFilterImpl_AddRef,
|
BaseFilterImpl_AddRef,
|
||||||
TransformFilterImpl_Release,
|
TransformFilterImpl_Release,
|
||||||
BaseFilterImpl_GetClassID,
|
BaseFilterImpl_GetClassID,
|
||||||
|
|
Loading…
Reference in New Issue