Commit fef1d403 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf: Add MFCreateVideoRendererActivate().

parent c1a62e01
......@@ -1144,3 +1144,27 @@ HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sou
return S_OK;
}
static HRESULT evr_create_object(IMFAttributes *attributes, void *user_context, IUnknown **obj)
{
FIXME("%p, %p, %p.\n", attributes, user_context, obj);
return E_NOTIMPL;
}
static void evr_free_private(void *user_context)
{
}
static const struct activate_funcs evr_activate_funcs =
{
evr_create_object,
evr_free_private,
};
HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate)
{
TRACE("%p, %p.\n", hwnd, activate);
return create_activation_object(hwnd, &evr_activate_funcs, activate);
}
......@@ -67,7 +67,7 @@
@ stub MFCreateTranscodeTopology
@ stub MFCreateUrlmonSchemePlugin
@ stub MFCreateVideoRenderer
@ stub MFCreateVideoRendererActivate
@ stdcall MFCreateVideoRendererActivate(long ptr)
@ stub MFCreateWMAEncoderActivate
@ stub MFCreateWMVEncoderActivate
@ stdcall MFEnumDeviceSources(ptr ptr ptr)
......
......@@ -2584,6 +2584,17 @@ if (SUCCEEDED(hr))
CoUninitialize();
}
static void test_evr(void)
{
IMFActivate *activate;
HRESULT hr;
hr = MFCreateVideoRendererActivate(NULL, &activate);
ok(hr == S_OK, "Failed to create activate object, hr %#x.\n", hr);
IMFActivate_Release(activate);
}
START_TEST(mf)
{
test_topology();
......@@ -2597,4 +2608,5 @@ START_TEST(mf)
test_video_processor();
test_quality_manager();
test_sar();
test_evr();
}
......@@ -586,6 +586,7 @@ cpp_quote("HRESULT WINAPI MFCreateSystemTimeSource(IMFPresentationTimeSource **t
cpp_quote("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
cpp_quote("HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);")
cpp_quote("HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);")
cpp_quote("HRESULT WINAPI MFCreateVideoRendererActivate(HWND hwnd, IMFActivate **activate);")
cpp_quote("HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count);")
cpp_quote("HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);")
cpp_quote("HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID iid, void **obj);")
......
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