quartz/filesource: Accept any non-null subtype.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2020-02-03 14:15:51 -06:00 committed by Alexandre Julliard
parent f31815f760
commit 76b6bcbf98
2 changed files with 3 additions and 2 deletions

View File

@ -591,7 +591,8 @@ static HRESULT source_query_accept(struct strmbase_pin *iface, const AM_MEDIA_TY
AsyncReader *filter = impl_from_strmbase_pin(iface);
if (IsEqualGUID(&mt->majortype, &filter->mt.majortype)
&& IsEqualGUID(&mt->subtype, &filter->mt.subtype))
&& (!IsEqualGUID(&mt->subtype, &GUID_NULL)
|| IsEqualGUID(&filter->mt.subtype, &GUID_NULL)))
return S_OK;
return S_FALSE;

View File

@ -389,7 +389,7 @@ static void test_file_source_filter(void)
mt.formattype = FORMAT_VideoInfo;
mt.subtype = MEDIASUBTYPE_RGB32;
hr = IPin_QueryAccept(pin, &mt);
todo_wine ok(hr == S_OK, "Got hr %#x.\n", hr);
ok(hr == S_OK, "Got hr %#x.\n", hr);
mt.majortype = MEDIATYPE_Video;
hr = IPin_QueryAccept(pin, &mt);