Commit a0b6c65d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

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

parent dd6a8d1d
......@@ -273,7 +273,7 @@ static void test_interfaces(void)
check_interface(filter, &IID_IVMRMixerControl, FALSE);
check_interface(filter, &IID_IVMRMixerControl9, 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);
......
......@@ -635,7 +635,8 @@ static HRESULT vmr_query_interface(struct strmbase_renderer *iface, REFIID iid,
else if (IsEqualGUID(iid, &IID_IVMRWindowlessControl)
&& filter->mode == (VMR9Mode)VMRMode_Windowless && !is_vmr9(filter))
*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;
else
return E_NOINTERFACE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment