diff --git a/packages/mediacenter/kodi/patches/kodi-999.99-detect-intel-gpus.patch b/packages/mediacenter/kodi/patches/kodi-999.99-detect-intel-gpus.patch index fc1ebf7..c26313b 100644 --- a/packages/mediacenter/kodi/patches/kodi-999.99-detect-intel-gpus.patch +++ b/packages/mediacenter/kodi/patches/kodi-999.99-detect-intel-gpus.patch @@ -1,6 +1,6 @@ -From b2db330176ca1115ae9a4bc31af082b80b87ecdb Mon Sep 17 00:00:00 2001 +From ebc74bb91b441a39f1ccf19f120803d2c488bf35 Mon Sep 17 00:00:00 2001 From: MilhouseVH -Date: Thu, 11 Aug 2016 07:32:48 +0100 +Date: Fri, 2 Dec 2016 11:52:11 +0000 Subject: [PATCH] LibreELEC: Detect intel gpus and use limited range by default --- @@ -10,10 +10,10 @@ Subject: [PATCH] LibreELEC: Detect intel gpus and use limited range by default 3 files changed, 25 insertions(+) diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.cpp b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.cpp -index e8071bd..83db224 100644 +index 6d6cdc1..9cc6ab9 100644 --- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.cpp +++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.cpp -@@ -22,6 +22,8 @@ +@@ -23,6 +23,8 @@ #include "settings/Settings.h" #include "settings/lib/Setting.h" #include "windowing/WindowingFactory.h" @@ -22,7 +22,7 @@ index e8071bd..83db224 100644 bool CDVDVideoCodec::IsSettingVisible(const std::string &condition, const std::string &value, const CSetting *setting, void *data) { -@@ -72,3 +74,12 @@ bool CDVDVideoCodec::IsCodecDisabled(const std::map &map +@@ -73,3 +75,12 @@ bool CDVDVideoCodec::IsCodecDisabled(const std::map &map } return false; // don't disable what we don't have } @@ -52,7 +52,7 @@ index a2da9de..cc8a574 100644 */ static bool IsCodecDisabled(const std::map &map, AVCodecID id); diff --git a/xbmc/settings/Settings.cpp b/xbmc/settings/Settings.cpp -index 0e429f3..7052391 100644 +index 906bb55..867f0b2 100644 --- a/xbmc/settings/Settings.cpp +++ b/xbmc/settings/Settings.cpp @@ -32,6 +32,7 @@ @@ -61,13 +61,12 @@ index 0e429f3..7052391 100644 #include "cores/VideoPlayer/VideoRenderers/BaseRenderer.h" +#include "cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodec.h" #include "filesystem/File.h" + #include "games/GameSettings.h" #include "guilib/GraphicContext.h" - #include "guilib/GUIAudioManager.h" -@@ -911,6 +912,14 @@ void CSettings::InitializeDefaults() - +@@ -834,6 +835,14 @@ void CSettings::InitializeDefaults() if (g_application.IsStandAlone()) ((CSettingInt*)m_settingsManager->GetSetting(CSettings::SETTING_POWERMANAGEMENT_SHUTDOWNSTATE))->SetDefault(POWERSTATE_SHUTDOWN); -+ + +#if ((defined(HAVE_LIBVA) || defined(HAVE_LIBVDPAU))) + bool isIntel = CDVDVideoCodec::IsIntel(); + // Intel driver is operating in passthrough mode so use limited range by default @@ -75,9 +74,10 @@ index 0e429f3..7052391 100644 + ((CSettingBool*)GetSetting(CSettings::SETTING_VIDEOPLAYER_USEVAAPI))->SetDefault(isIntel); + ((CSettingBool*)GetSetting(CSettings::SETTING_VIDEOPLAYER_USEVDPAU))->SetDefault(!isIntel); +#endif ++ + g_powerManager.SetDefaults(); } - void CSettings::InitializeOptionFillers() -- 2.7.4