Skip to content
Permalink
Browse files

MMALRenderer: Ensure updated aspect ratio is seen in the case of a si…

…ngle still frame
  • Loading branch information...
popcornmix committed Sep 16, 2016
1 parent 3f55be6 commit 759cff3c52f1337bbfed89302d538bd06cfaee3a
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/MMALRenderer.cpp
@@ -388,6 +388,7 @@ bool CMMALRenderer::CheckConfigurationVout(uint32_t width, uint32_t height, uint
Create();
}
}
SetVideoRect(m_sourceRect, m_destRect);
return true;
}

@@ -796,6 +797,7 @@ void CMMALRenderer::RenderUpdate(bool clear, DWORD flags, DWORD alpha)
// we only want to upload frames once
if (omvb && omvb->m_rendered)
{
SetVideoRect(m_sourceRect, m_destRect);
if (g_advancedSettings.CanLogComponent(LOGVIDEO))
CLog::Log(LOGDEBUG, "%s::%s - MMAL: clear:%d flags:%x alpha:%d source:%d omvb:%p mmal:%p mflags:%x skipping", CLASSNAME, __func__, clear, flags, alpha, source, omvb, omvb->mmal_buffer, omvb->mmal_buffer->flags);
goto exit;
@@ -818,7 +820,6 @@ void CMMALRenderer::RenderUpdate(bool clear, DWORD flags, DWORD alpha)
CLog::Log(LOGDEBUG, "%s::%s - bypass: clear:%d flags:%x alpha:%d source:%d format:%d", CLASSNAME, __func__, clear, flags, alpha, source, m_format);
goto exit;
}
SetVideoRect(m_sourceRect, m_destRect);

if (omvb && omvb->mmal_buffer)
{

0 comments on commit 759cff3

Please sign in to comment.
You can’t perform that action at this time.