quartz: Don't clean up in avi decoder if driver isn't opened.

This commit is contained in:
Maarten Lankhorst 2008-04-12 23:04:49 -07:00 committed by Alexandre Julliard
parent 296a59da7e
commit 48f80f6296
1 changed files with 4 additions and 1 deletions

View File

@ -146,11 +146,14 @@ static HRESULT AVIDec_ProcessEnd(TransformFilterImpl* pTransformFilter)
TRACE("(%p)->()\n", This);
if (!This->hvid)
return S_OK;
result = ICDecompressEnd(This->hvid);
if (result != ICERR_OK)
{
ERR("Cannot stop processing (%d)\n", result);
return E_FAIL;
return E_FAIL;
}
return S_OK;
}