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:
Zebediah Figura 2019-09-26 21:40:50 -05:00 committed by Alexandre Julliard
parent c08ab0b941
commit 084cb90f58
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}