From 44f468961559c033461967c21d827644f5e54bb9 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Wed, 21 May 2014 18:39:32 +0200 Subject: [osx] - handle the VDA HW Acceleration setting same as all others (instead of overwriting in darwin_osx.xml - introduce HasVDA dependency and use that one) --- system/settings/darwin_osx.xml | 14 -------------- system/settings/settings.xml | 9 +++++++++ xbmc/settings/SettingConditions.cpp | 3 +++ 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/system/settings/darwin_osx.xml b/system/settings/darwin_osx.xml index 0a772775a8..9a5538ba44 100644 --- a/system/settings/darwin_osx.xml +++ b/system/settings/darwin_osx.xml @@ -9,20 +9,6 @@ -
- - - - - 1 - - 2 - true - - - - -
diff --git a/system/settings/settings.xml b/system/settings/settings.xml index 391bcee967..fc9d6be9ea 100644 --- a/system/settings/settings.xml +++ b/system/settings/settings.xml @@ -748,6 +748,15 @@ true + + HasVDA + + 1 + + 2 + true + + diff --git a/xbmc/settings/SettingConditions.cpp b/xbmc/settings/SettingConditions.cpp index ff10d49601..9a9915d8d6 100644 --- a/xbmc/settings/SettingConditions.cpp +++ b/xbmc/settings/SettingConditions.cpp @@ -250,6 +250,9 @@ void CSettingConditions::Initialize() if (g_sysinfo.HasVideoToolBoxDecoder()) m_simpleConditions.insert("hasvideotoolboxdecoder"); #endif +#ifdef TARGET_DARWIN_OSX + m_simpleConditions.insert("HasVDA"); +#endif #ifdef HAS_LIBAMCODEC if (aml_present()) m_simpleConditions.insert("have_amcodec"); -- cgit v1.2.3