qcap/avico: Don't try to commit a NULL allocator in AVICompressor_Run().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c08ab0b941
commit
084cb90f58
|
@ -148,8 +148,8 @@ static HRESULT WINAPI AVICompressor_Run(IBaseFilter *iface, REFERENCE_TIME tStar
|
||||||
if(This->filter.state == State_Running)
|
if(This->filter.state == State_Running)
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
|
||||||
hres = IMemAllocator_Commit(This->source.pAllocator);
|
if (This->source.pAllocator && FAILED(hres = IMemAllocator_Commit(This->source.pAllocator)))
|
||||||
if(FAILED(hres)) {
|
{
|
||||||
FIXME("Commit failed: %08x\n", hres);
|
FIXME("Commit failed: %08x\n", hres);
|
||||||
return hres;
|
return hres;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue