aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2015-12-05 15:07:22 +0100
committerChris "Koying" Browet <cbro@semperpax.com>2015-12-05 15:10:55 +0100
commita56faba107fbec29edfca711be31f411da47d687 (patch)
treec2fa6022d7247212ef4dd72785acc13a3bf6c9dd
parent20c8c0821b49310f85c6da2f39382d061084611f (diff)
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;