Better handling of errors in RenderFile.
This commit is contained in:
parent
9cc5c15795
commit
8d01911493
|
@ -949,6 +949,7 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
|
|||
}
|
||||
|
||||
/* Render all output pin of the splitter by calling IGraphBuilder_Render on each of them */
|
||||
if (SUCCEEDED(hr))
|
||||
hr = GetInternalConnections(psplitter, ppinsplitter, &ppins, &nb);
|
||||
|
||||
if (SUCCEEDED(hr)) {
|
||||
|
@ -963,10 +964,10 @@ static HRESULT WINAPI Graphbuilder_RenderFile(IGraphBuilder *iface,
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
CoTaskMemFree(ppins);
|
||||
}
|
||||
|
||||
return S_OK;
|
||||
return hr;
|
||||
}
|
||||
|
||||
static HRESULT WINAPI Graphbuilder_AddSourceFilter(IGraphBuilder *iface,
|
||||
|
|
Loading…
Reference in New Issue