From 5129ee1355c37a9d99766bec138de629ac7b9e60 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 19 Apr 2013 18:40:20 +0200 Subject: dxva2: flush display queue before counting used buffers --- decoder/LAVVideo/decoders/dxva2dec.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'decoder') 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; } -- cgit v1.2.3