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-04-19 20:40:20 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-04-19 20:40:20 +0400
commit5129ee1355c37a9d99766bec138de629ac7b9e60 (patch)
tree62d864089f78d95186e99c05a787ebc3cc993515 /decoder
parent043ffa8d670e45dd8e87da1b5048a62f5e404115 (diff)
dxva2: flush display queue before counting used buffers
Diffstat (limited to 'decoder')
-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;
}