Commit 084cb90f authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap/avico: Don't try to commit a NULL allocator in AVICompressor_Run().

parent c08ab0b9
......@@ -148,8 +148,8 @@ static HRESULT WINAPI AVICompressor_Run(IBaseFilter *iface, REFERENCE_TIME tStar
if(This->filter.state == State_Running)
return S_OK;
hres = IMemAllocator_Commit(This->source.pAllocator);
if(FAILED(hres)) {
if (This->source.pAllocator && FAILED(hres = IMemAllocator_Commit(This->source.pAllocator)))
{
FIXME("Commit failed: %08x\n", hres);
return hres;
}
......
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