quartz: Skip filtergraph tests when filtergraph cannot be created.

This commit is contained in:
Maarten Lankhorst 2011-06-24 16:51:11 +02:00 committed by Alexandre Julliard
parent df16d37b67
commit f991daf188
1 changed files with 7 additions and 0 deletions

View File

@ -1872,7 +1872,14 @@ static void test_render_filter_priority(void)
START_TEST(filtergraph)
{
HRESULT hr;
CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = CoCreateInstance(&CLSID_FilterGraph, NULL, CLSCTX_INPROC_SERVER,
&IID_IGraphBuilder, (LPVOID*)&pgraph);
if (FAILED(hr)) {
skip("Creating filtergraph returned %08x, skipping tests\n", hr);
return;
}
test_render_run(avifile);
test_render_run(mpegfile);
test_graph_builder();