[PATCH 3/5] qedit/samplegrabber: Initialize the media type filter to use wild cards instead of "None" types.

Zebediah Figura z.figura12 at gmail.com
Thu Feb 6 16:49:12 CST 2020


Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/qedit/samplegrabber.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/dlls/qedit/samplegrabber.c b/dlls/qedit/samplegrabber.c
index 398a5bb815b..6a9dea0b9fb 100644
--- a/dlls/qedit/samplegrabber.c
+++ b/dlls/qedit/samplegrabber.c
@@ -519,12 +519,11 @@ static HRESULT sample_grabber_sink_connect(struct strmbase_sink *iface,
             && !IsEqualGUID(&filter->mtype.majortype, &mt->majortype))
         return VFW_E_TYPE_NOT_ACCEPTED;
 
-    if (!IsEqualGUID(&filter->mtype.subtype,&MEDIASUBTYPE_None)
+    if (!IsEqualGUID(&filter->mtype.subtype, &GUID_NULL)
             && !IsEqualGUID(&filter->mtype.subtype, &mt->subtype))
         return VFW_E_TYPE_NOT_ACCEPTED;
 
     if (!IsEqualGUID(&filter->mtype.formattype, &GUID_NULL)
-            && !IsEqualGUID(&filter->mtype.formattype, &FORMAT_None)
             && !IsEqualGUID(&filter->mtype.formattype, &mt->formattype))
         return VFW_E_TYPE_NOT_ACCEPTED;
 
@@ -626,9 +625,6 @@ HRESULT SampleGrabber_create(IUnknown *outer, void **out)
     strmbase_sink_init(&obj->sink, &obj->filter, L"In", &sink_ops, NULL);
     strmbase_source_init(&obj->source, &obj->filter, L"Out", &source_ops);
 
-    obj->mtype.majortype = GUID_NULL;
-    obj->mtype.subtype = MEDIASUBTYPE_None;
-    obj->mtype.formattype = FORMAT_None;
     obj->allocator = NULL;
     obj->grabberIface = NULL;
     obj->grabberMethod = -1;
-- 
2.25.0




More information about the wine-devel mailing list