From 611b504bf98ee59f1cdb8bdf0c0db378df3fab83 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 13 Jul 2018 20:49:51 -0700 Subject: [PATCH] Minor DXVA2 logging fixes --- app/streaming/renderers/dxva2.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/streaming/renderers/dxva2.cpp b/app/streaming/renderers/dxva2.cpp index 9e0f3dd7..189d8ceb 100644 --- a/app/streaming/renderers/dxva2.cpp +++ b/app/streaming/renderers/dxva2.cpp @@ -55,7 +55,9 @@ AVBufferRef* DXVA2Renderer::ffPoolAlloc(void* opaque, int) DXVA2Renderer* me = reinterpret_cast(opaque); if (me->m_SurfacesUsed < ARRAYSIZE(me->m_DecSurfaces)) { - SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "Using buffer: %d", me->m_SurfacesUsed); + SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, + "DXVA2 decoder surface high-water mark: %d", + me->m_SurfacesUsed); return av_buffer_create((uint8_t*)me->m_DecSurfaces[me->m_SurfacesUsed++], sizeof(*me->m_DecSurfaces), ffPoolDummyDelete, 0, 0); } @@ -297,7 +299,7 @@ bool DXVA2Renderer::initializeRenderer() SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "Device %d can't convert YUV2RGB: %x", i, - caps.DeviceCaps); + caps.VideoProcessorOperations); continue; }