wineqtdecoder: Unload the AsyncReader on movie processing failure.

This commit is contained in:
Aric Stewart 2015-04-01 09:47:47 -05:00 committed by Alexandre Julliard
parent 56ab12ccef
commit d0d7c47b65

View File

@ -1138,6 +1138,8 @@ static HRESULT WINAPI QTInPin_ReceiveConnection(IPin *iface, IPin *pReceivePin,
hr = QT_Process_Movie(impl_from_IBaseFilter(This->pin.pinInfo.pFilter));
if (FAILED(hr))
{
IAsyncReader_Release(This->pReader);
This->pReader = NULL;
LeaveCriticalSection(&impl_from_IBaseFilter(This->pin.pinInfo.pFilter)->filter.csFilter);
TRACE("Unable to process movie\n");
return hr;