Commit 8d019114 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Better handling of errors in RenderFile.

parent 9cc5c157
......@@ -949,7 +949,8 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
}
/* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */
hr = GetInternalConnections(psplitter, ppinsplitter, &ppins, &nb);
if (SUCCEEDED(hr))
hr = GetInternalConnections(psplitter, ppinsplitter, &ppins, &nb);
if (SUCCEEDED(hr)) {
int i;
......@@ -963,10 +964,10 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
break;
}
}
CoTaskMemFree(ppins);
}
CoTaskMemFree(ppins);
return S_OK;
return hr;
}
static HRESULT WINAPI Graphbuilder_AddSourceFilter(IGraphBuilder *iface,
......
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