quartz/vmr9: Don't expose IVMRWindowlessControl9 from the VMR7.

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-04-28 17:44:46 -05:00 committed by Alexandre Julliard
parent dd6a8d1dae
commit a0b6c65df8
2 changed files with 3 additions and 2 deletions

View File

@ -273,7 +273,7 @@ static void test_interfaces(void)
check_interface(filter, &IID_IVMRMixerControl, FALSE); check_interface(filter, &IID_IVMRMixerControl, FALSE);
check_interface(filter, &IID_IVMRMixerControl9, FALSE); check_interface(filter, &IID_IVMRMixerControl9, FALSE);
todo_wine check_interface(filter, &IID_IVMRMonitorConfig9, FALSE); todo_wine check_interface(filter, &IID_IVMRMonitorConfig9, FALSE);
todo_wine check_interface(filter, &IID_IVMRWindowlessControl9, FALSE); check_interface(filter, &IID_IVMRWindowlessControl9, FALSE);
IBaseFilter_FindPin(filter, L"VMR Input0", &pin); IBaseFilter_FindPin(filter, L"VMR Input0", &pin);

View File

@ -635,7 +635,8 @@ static HRESULT vmr_query_interface(struct strmbase_renderer *iface, REFIID iid,
else if (IsEqualGUID(iid, &IID_IVMRWindowlessControl) else if (IsEqualGUID(iid, &IID_IVMRWindowlessControl)
&& filter->mode == (VMR9Mode)VMRMode_Windowless && !is_vmr9(filter)) && filter->mode == (VMR9Mode)VMRMode_Windowless && !is_vmr9(filter))
*out = &filter->IVMRWindowlessControl_iface; *out = &filter->IVMRWindowlessControl_iface;
else if (IsEqualGUID(iid, &IID_IVMRWindowlessControl9) && filter->mode == VMR9Mode_Windowless) else if (IsEqualGUID(iid, &IID_IVMRWindowlessControl9)
&& filter->mode == VMR9Mode_Windowless && is_vmr9(filter))
*out = &filter->IVMRWindowlessControl9_iface; *out = &filter->IVMRWindowlessControl9_iface;
else else
return E_NOINTERFACE; return E_NOINTERFACE;