Skip to content

Commit

Permalink
Merge pull request xbmc#8485 from koying/fixamcsfeatures
Browse files Browse the repository at this point in the history
FIX: [amcs] no brightness/contrast for mediacodec(S)
  • Loading branch information
koying committed Dec 5, 2015
2 parents bbac08f + a56faba commit 85a0a13
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2885,11 +2885,14 @@ bool CLinuxRendererGLES::Supports(ERENDERFEATURE feature)
return itr != m_renderFeatures.end();
}

if(feature == RENDERFEATURE_BRIGHTNESS)
return true;
if (!(m_renderMethod & RENDER_MEDIACODECSURFACE))
{
if(feature == RENDERFEATURE_BRIGHTNESS)
return true;

if(feature == RENDERFEATURE_CONTRAST)
return true;
if(feature == RENDERFEATURE_CONTRAST)
return true;
}

if(feature == RENDERFEATURE_GAMMA)
return false;
Expand Down

0 comments on commit 85a0a13

Please sign in to comment.