qedit/samplegrabber: Don't verify the format block in sample_grabber_sink_connect().

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-07 23:51:55 -06:00 committed by Alexandre Julliard
parent 114b99fba9
commit 10c6b08b07
1 changed files with 0 additions and 4 deletions

View File

@ -503,10 +503,6 @@ static HRESULT sample_grabber_sink_connect(struct strmbase_sink *iface,
{ {
SG_Impl *filter = impl_from_sink_pin(&iface->pin); SG_Impl *filter = impl_from_sink_pin(&iface->pin);
if (!IsEqualGUID(&mt->formattype, &FORMAT_None)
&& !IsEqualGUID(&mt->formattype, &GUID_NULL) && !mt->pbFormat)
return VFW_E_INVALIDMEDIATYPE;
if (!IsEqualGUID(&filter->filter_mt.majortype, &GUID_NULL) if (!IsEqualGUID(&filter->filter_mt.majortype, &GUID_NULL)
&& !IsEqualGUID(&filter->filter_mt.majortype, &mt->majortype)) && !IsEqualGUID(&filter->filter_mt.majortype, &mt->majortype))
return VFW_E_TYPE_NOT_ACCEPTED; return VFW_E_TYPE_NOT_ACCEPTED;