Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-01-13 00:30:56 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-01-13 00:30:56 +0400
commit772d12fb94fd9fcf7e10c73a46ff3246d5dfe4a0 (patch)
tree7a017f9c944efaefcee93979a4b1763571d5792e /decoder
parent7f40149351fe2b6232ab90ccae3943c732e181e0 (diff)
dxva2: ensure device manager is present before trying to release a device handle.
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp
index 7cf97490..17d475bf 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.cpp
+++ b/decoder/LAVVideo/decoders/dxva2dec.cpp
@@ -227,7 +227,7 @@ STDMETHODIMP CDecDXVA2::DestroyDecoder(bool bFull, bool bNoAVCodec)
STDMETHODIMP CDecDXVA2::FreeD3DResources()
{
SafeRelease(&m_pDXVADecoderService);
- if (m_hDevice != INVALID_HANDLE_VALUE)
+ if (m_pD3DDevMngr && m_hDevice != INVALID_HANDLE_VALUE)
m_pD3DDevMngr->CloseDeviceHandle(m_hDevice);
m_hDevice = INVALID_HANDLE_VALUE;
SafeRelease(&m_pD3DDevMngr);