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:36 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-04-19 20:40:36 +0400
commit861eca6bb1a5aa239e5c98ca521a6435629b9b20 (patch)
treee82c53e051a6b7351f1a2435fde9960e22e36437 /decoder
parent5129ee1355c37a9d99766bec138de629ac7b9e60 (diff)
dxva2: only count used buffers in debug mode
Its only used to output a debug message anyway.
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp
index 7b29aa71..11e392f6 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.cpp
+++ b/decoder/LAVVideo/decoders/dxva2dec.cpp
@@ -1172,6 +1172,7 @@ STDMETHODIMP CDecDXVA2::Flush()
CDecAvcodec::Flush();
FlushDisplayQueue(FALSE);
+#ifdef DEBUG
int used = 0;
for (int i = 0; i < m_NumSurfaces; i++) {
d3d_surface_t *s = &m_pSurfaces[i];
@@ -1182,6 +1183,7 @@ STDMETHODIMP CDecDXVA2::Flush()
if (used > 0) {
DbgLog((LOG_TRACE, 10, L"WARNING! %d frames still in use after flush", used));
}
+#endif
return S_OK;
}