wineqtdecoder: Unload the AsyncReader on movie processing failure.
This commit is contained in:
parent
56ab12ccef
commit
d0d7c47b65
|
@ -1138,6 +1138,8 @@ static HRESULT WINAPI QTInPin_ReceiveConnection(IPin *iface, IPin *pReceivePin,
|
||||||
hr = QT_Process_Movie(impl_from_IBaseFilter(This->pin.pinInfo.pFilter));
|
hr = QT_Process_Movie(impl_from_IBaseFilter(This->pin.pinInfo.pFilter));
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
|
IAsyncReader_Release(This->pReader);
|
||||||
|
This->pReader = NULL;
|
||||||
LeaveCriticalSection(&impl_from_IBaseFilter(This->pin.pinInfo.pFilter)->filter.csFilter);
|
LeaveCriticalSection(&impl_from_IBaseFilter(This->pin.pinInfo.pFilter)->filter.csFilter);
|
||||||
TRACE("Unable to process movie\n");
|
TRACE("Unable to process movie\n");
|
||||||
return hr;
|
return hr;
|
||||||
|
|
Loading…
Reference in New Issue