evr/presenter: Expose IMFVideoDisplayControl as a service.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
164c3b7f2b
commit
69e777c804
|
@ -618,6 +618,17 @@ static HRESULT WINAPI video_presenter_getservice_GetService(IMFGetService *iface
|
|||
if (IsEqualGUID(&MR_VIDEO_ACCELERATION_SERVICE, service))
|
||||
return IDirect3DDeviceManager9_QueryInterface(presenter->device_manager, riid, obj);
|
||||
|
||||
if (IsEqualGUID(&MR_VIDEO_RENDER_SERVICE, service))
|
||||
{
|
||||
if (IsEqualIID(riid, &IID_IMFVideoDisplayControl))
|
||||
return IMFVideoPresenter_QueryInterface(&presenter->IMFVideoPresenter_iface, riid, obj);
|
||||
else
|
||||
{
|
||||
FIXME("Unsupported interface %s.\n", debugstr_guid(riid));
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
}
|
||||
|
||||
FIXME("Unimplemented service %s.\n", debugstr_guid(service));
|
||||
|
||||
return E_NOTIMPL;
|
||||
|
|
|
@ -1015,9 +1015,7 @@ static void test_default_presenter(void)
|
|||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||
|
||||
hr = IMFGetService_GetService(gs, &MR_VIDEO_RENDER_SERVICE, &IID_IMFVideoDisplayControl, (void **)&display_control);
|
||||
todo_wine
|
||||
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
|
||||
if (SUCCEEDED(hr))
|
||||
IMFVideoDisplayControl_Release(display_control);
|
||||
|
||||
hr = IMFGetService_GetService(gs, &MR_VIDEO_ACCELERATION_SERVICE, &IID_IDirect3DDeviceManager9, (void **)&dm);
|
||||
|
|
Loading…
Reference in New Issue