diff options
-rw-r--r-- | decoder/LAVVideo/decoders/dxva2dec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp index 3759977f..7b29aa71 100644 --- a/decoder/LAVVideo/decoders/dxva2dec.cpp +++ b/decoder/LAVVideo/decoders/dxva2dec.cpp @@ -1170,6 +1170,7 @@ HRESULT CDecDXVA2::PostDecode() STDMETHODIMP CDecDXVA2::Flush() { CDecAvcodec::Flush(); + FlushDisplayQueue(FALSE); int used = 0; for (int i = 0; i < m_NumSurfaces; i++) { @@ -1182,8 +1183,6 @@ STDMETHODIMP CDecDXVA2::Flush() DbgLog((LOG_TRACE, 10, L"WARNING! %d frames still in use after flush", used)); } - FlushDisplayQueue(FALSE); - return S_OK; } |