quartz/vmr9: Don't expose IVMRMonitorConfig from the VMR9.

Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gijs Vermeulen 2020-10-26 15:37:23 +01:00 committed by Alexandre Julliard
parent 80fa0b93a6
commit a6d1ee860c
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ static void test_common_interfaces(IBaseFilter *filter)
check_interface(filter, &IID_IVMRFilterConfig, FALSE);
check_interface(filter, &IID_IVMRMixerBitmap, FALSE);
check_interface(filter, &IID_IVMRMixerControl, FALSE);
todo_wine check_interface(filter, &IID_IVMRMonitorConfig, FALSE);
check_interface(filter, &IID_IVMRMonitorConfig, FALSE);
check_interface(filter, &IID_IVMRSurfaceAllocatorNotify, FALSE);
check_interface(filter, &IID_IVMRWindowlessControl, FALSE);

View File

@ -611,7 +611,7 @@ static HRESULT vmr_query_interface(struct strmbase_renderer *iface, REFIID iid,
*out = &filter->IVMRMixerBitmap9_iface;
else if (IsEqualGUID(iid, &IID_IVMRMixerControl9) && is_vmr9(filter) && filter->stream_count)
*out = &filter->IVMRMixerControl9_iface;
else if (IsEqualGUID(iid, &IID_IVMRMonitorConfig))
else if (IsEqualGUID(iid, &IID_IVMRMonitorConfig) && !is_vmr9(filter))
*out = &filter->IVMRMonitorConfig_iface;
else if (IsEqualGUID(iid, &IID_IVMRMonitorConfig9)
&& filter->mode != VMR9Mode_Renderless && is_vmr9(filter))