Zebediah Figura : strmbase/transform: Don' t expose IQualityControl from the filter.
Alexandre Julliard
julliard at winehq.org
Mon May 20 15:50:47 CDT 2019
Module: wine
Branch: master
Commit: c1b8ffde91d759bb90d47a4f06cc5e597b772016
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c1b8ffde91d759bb90d47a4f06cc5e597b772016
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Sat May 18 21:38:49 2019 -0500
strmbase/transform: Don't expose IQualityControl from the filter.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/quartz/tests/acmwrapper.c | 2 +-
dlls/quartz/tests/avidec.c | 2 +-
dlls/strmbase/transform.c | 22 +---------------------
3 files changed, 3 insertions(+), 23 deletions(-)
diff --git a/dlls/quartz/tests/acmwrapper.c b/dlls/quartz/tests/acmwrapper.c
index 08ee40b..357a1ff 100644
--- a/dlls/quartz/tests/acmwrapper.c
+++ b/dlls/quartz/tests/acmwrapper.c
@@ -76,7 +76,7 @@ static void test_interfaces(void)
check_interface(filter, &IID_IMediaPosition, FALSE);
check_interface(filter, &IID_IMediaSeeking, 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_IReferenceClock, FALSE);
check_interface(filter, &IID_IVideoWindow, FALSE);
diff --git a/dlls/quartz/tests/avidec.c b/dlls/quartz/tests/avidec.c
index 04de373..5406c56 100644
--- a/dlls/quartz/tests/avidec.c
+++ b/dlls/quartz/tests/avidec.c
@@ -101,7 +101,7 @@ static void test_interfaces(void)
check_interface(filter, &IID_IMediaSeeking, FALSE);
check_interface(filter, &IID_IPersistPropertyBag, 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_IReferenceClock, FALSE);
check_interface(filter, &IID_IVideoWindow, FALSE);
diff --git a/dlls/strmbase/transform.c b/dlls/strmbase/transform.c
index ab502c9..9cb18b2 100644
--- a/dlls/strmbase/transform.c
+++ b/dlls/strmbase/transform.c
@@ -161,26 +161,6 @@ static const BaseOutputPinFuncTable tf_output_BaseOutputFuncTable = {
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)
{
TransformFilter *This = impl_from_IBaseFilter(iface);
@@ -293,7 +273,7 @@ static HRESULT WINAPI TransformFilterImpl_Run(IBaseFilter *iface, REFERENCE_TIME
static const IBaseFilterVtbl transform_vtbl =
{
- TransformFilterImpl_QueryInterface,
+ BaseFilterImpl_QueryInterface,
BaseFilterImpl_AddRef,
TransformFilterImpl_Release,
BaseFilterImpl_GetClassID,
More information about the wine-cvs
mailing list