Skip to content

Commit

Permalink
[mmalrender] Skip some log message in bypass mode
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix authored and Dom Cobley committed Feb 17, 2015
1 parent ea128c0 commit 1e72d22
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xbmc/cores/VideoRenderers/MMALRenderer.cpp
Expand Up @@ -298,6 +298,9 @@ int CMMALRenderer::GetImage(YV12Image *image, int source, bool readonly)

void CMMALRenderer::ReleaseBuffer(int idx)
{
if (!m_bConfigured || m_format == RENDER_FMT_BYPASS)
return;

#if defined(MMAL_DEBUG_VERBOSE)
CLog::Log(LOGDEBUG, "%s::%s - %d", CLASSNAME, __func__, idx);
#endif
Expand Down Expand Up @@ -351,13 +354,13 @@ void CMMALRenderer::RenderUpdate(bool clear, DWORD flags, DWORD alpha)

void CMMALRenderer::FlipPage(int source)
{
if (!m_bConfigured || m_format == RENDER_FMT_BYPASS)
return;

#if defined(MMAL_DEBUG_VERBOSE)
CLog::Log(LOGDEBUG, "%s::%s - %d", CLASSNAME, __func__, source);
#endif

if (!m_bConfigured || m_format == RENDER_FMT_BYPASS)
return;

YUVBUFFER *buffer = &m_buffers[source];
// we only want to upload frames once
if (buffer->flipindex++)
Expand Down

0 comments on commit 1e72d22

Please sign in to comment.