aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Kaijser <martijn@xbmc.org>2015-02-15 08:48:28 +0100
committerMartijn Kaijser <martijn@xbmc.org>2015-02-15 08:48:28 +0100
commit5e331cd91fff28ea80f6e81af1c55b64cec9c704 (patch)
treea3053480e0a75875b2a9f96b2db2b1a0bedaa748
parent5295c73c99e710e8b769deffb7923d213e51ba39 (diff)
parenta583519af3f2a1e0ca5e1596859d5a7221bef4cd (diff)
Merge pull request #6423 from MartijnKaijser/cleanup_upgrade_legacy
Cleanup of legacy upgrade code pre-Frodo
-rw-r--r--xbmc/Application.cpp41
1 files changed, 3 insertions, 38 deletions
diff --git a/xbmc/Application.cpp b/xbmc/Application.cpp
index d727e404cb..0377bc6531 100644
--- a/xbmc/Application.cpp
+++ b/xbmc/Application.cpp
@@ -1526,43 +1526,8 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
return false;
const std::string &settingId = setting->GetId();
- if (settingId == "audiooutput.channels")
- {
- // check if this is an update from Eden
- if (oldSettingId != NULL && oldSettingNode != NULL &&
- StringUtils::EqualsNoCase(oldSettingId, "audiooutput.channellayout"))
- {
- bool ret = false;
- CSettingInt* channels = (CSettingInt*)setting;
- if (channels->FromString(oldSettingNode->FirstChild()->ValueStr()) && channels->GetValue() < AE_CH_LAYOUT_MAX - 1)
- ret = channels->SetValue(channels->GetValue() + 1);
-
- // let's just reset the audiodevice settings as well
- std::string audiodevice = CSettings::Get().GetString("audiooutput.audiodevice");
- CAEFactory::VerifyOutputDevice(audiodevice, false);
- ret |= CSettings::Get().SetString("audiooutput.audiodevice", audiodevice.c_str());
-
- return ret;
- }
- }
- else if (settingId == "screensaver.mode")
- {
- CSettingString *screensaverMode = (CSettingString*)setting;
- // we no longer ship the built-in slideshow screensaver, replace it if it's still in use
- if (StringUtils::EqualsNoCase(screensaverMode->GetValue(), "screensaver.xbmc.builtin.slideshow"))
- return screensaverMode->SetValue("screensaver.xbmc.builtin.dim");
- }
- else if (settingId == "scrapers.musicvideosdefault")
- {
- CSettingAddon *musicvideoScraper = (CSettingAddon*)setting;
- if (StringUtils::EqualsNoCase(musicvideoScraper->GetValue(), "metadata.musicvideos.last.fm"))
- {
- musicvideoScraper->Reset();
- return true;
- }
- }
#if defined(HAS_LIBAMCODEC)
- else if (settingId == "videoplayer.useamcodec")
+ if (settingId == "videoplayer.useamcodec")
{
// Do not permit amcodec to be used on non-aml platforms.
// The setting will be hidden but the default value is true,
@@ -1575,7 +1540,7 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
}
#endif
#if defined(TARGET_ANDROID)
- else if (settingId == "videoplayer.usemediacodec")
+ if (settingId == "videoplayer.usemediacodec")
{
// Do not permit MediaCodec to be used Android platforms that do not have it.
// The setting will be hidden but the default value is true,
@@ -1593,7 +1558,7 @@ bool CApplication::OnSettingUpdate(CSetting* &setting, const char *oldSettingId,
}
#endif
#if defined(TARGET_DARWIN_OSX)
- else if (settingId == "audiooutput.audiodevice")
+ if (settingId == "audiooutput.audiodevice")
{
CSettingString *audioDevice = (CSettingString*)setting;
// Gotham and older didn't enumerate audio devices per stream on osx