From a56faba107fbec29edfca711be31f411da47d687 Mon Sep 17 00:00:00 2001 From: "Chris \"Koying\" Browet" Date: Sat, 5 Dec 2015 15:07:22 +0100 Subject: FIX: [amcs] no brightness/contrast for mediacodec(S) --- xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp | 11 +++++++---- 1 file 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; -- cgit v1.2.3