Commit 8e82b56a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf/tests: Skip tests if video renderer can't be created.

parent fd115355
......@@ -5799,7 +5799,12 @@ static void test_evr(void)
ok(hr == S_OK, "Startup failure, hr %#lx.\n", hr);
hr = MFCreateVideoRenderer(&IID_IMFVideoRenderer, (void **)&video_renderer);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
if (FAILED(hr))
{
skip("Failed to create video renderer object, skipping tests.\n");
MFShutdown();
return;
}
hr = IMFVideoRenderer_InitializeRenderer(video_renderer, NULL, NULL);
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
......
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