Skip to content

Commit

Permalink
renderer: fix queue size for DXVA-HD
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Apr 24, 2014
1 parent 54b5fee commit d43082b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/cores/VideoRenderers/RenderManager.cpp
Expand Up @@ -258,7 +258,9 @@ bool CXBMCRenderManager::Configure(unsigned int width, unsigned int height, unsi
m_format = format;

int processor = m_pRenderer->GetProcessorSize();
if(processor)
if(processor > buffers) /* DXVA-HD returns processor size 6 */
m_QueueSize = 3; /* we need queue size of 3 to get future frames in the processor */
else if(processor)
m_QueueSize = buffers - processor + 1; /* respect maximum refs */
else
m_QueueSize = m_pRenderer->GetMaxBufferSize(); /* no refs to data */
Expand Down

0 comments on commit d43082b

Please sign in to comment.