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:
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp3
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;
}