aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Browet <koying@semperpax.com>2015-12-05 15:12:09 +0100
committerChris Browet <koying@semperpax.com>2015-12-05 15:12:09 +0100
commit85a0a13ece70fad0a94036aa84d7a70e728c9624 (patch)
tree4c235e8364c30d1a0416c99d1f015864f81ecce4
parentbbac08f9c32cdfb3fb5a7252342c3f536af2e259 (diff)
parenta56faba107fbec29edfca711be31f411da47d687 (diff)
Merge pull request #8485 from koying/fixamcsfeatures16.0b3-Jarvis
FIX: [amcs] no brightness/contrast for mediacodec(S)
-rw-r--r--xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp b/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
index af063416a8..75c2dda87a 100644
--- a/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
+++ b/xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
@@ -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;