Commit 58f7c782 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/evr: Forward mixer service requests to the mixer.

parent 52f8191b
......@@ -468,9 +468,28 @@ static ULONG WINAPI video_renderer_get_service_Release(IMFGetService *iface)
static HRESULT WINAPI video_renderer_get_service_GetService(IMFGetService *iface, REFGUID service, REFIID riid, void **obj)
{
FIXME("%p, %s, %s, %p.\n", iface, debugstr_guid(service), debugstr_guid(riid), obj);
struct video_renderer *renderer = impl_from_IMFGetService(iface);
HRESULT hr = E_NOINTERFACE;
IMFGetService *gs = NULL;
return E_NOTIMPL;
TRACE("%p, %s, %s, %p.\n", iface, debugstr_guid(service), debugstr_guid(riid), obj);
if (IsEqualGUID(service, &MR_VIDEO_MIXER_SERVICE))
{
hr = IMFTransform_QueryInterface(renderer->mixer, &IID_IMFGetService, (void **)&gs);
}
else
{
FIXME("Unsupported service %s.\n", debugstr_guid(service));
}
if (gs)
{
hr = IMFGetService_GetService(gs, service, riid, obj);
IMFGetService_Release(gs);
}
return hr;
}
static const IMFGetServiceVtbl video_renderer_get_service_vtbl =
......
......@@ -3235,6 +3235,7 @@ static void test_evr(void)
IMFActivate *activate;
DWORD flags, count;
IMFGetService *gs;
IUnknown *unk;
UINT64 value;
HRESULT hr;
......@@ -3280,6 +3281,11 @@ static void test_evr(void)
hr = IMFMediaSink_QueryInterface(sink, &IID_IMFGetService, (void **)&gs);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
hr = IMFGetService_GetService(gs, &MR_VIDEO_MIXER_SERVICE, &IID_IMFVideoMixerControl, (void **)&unk);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
IUnknown_Release(unk);
IMFGetService_Release(gs);
hr = IMFActivate_ShutdownObject(activate);
......
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