Browse files

Remove old code disabling crossfade selection with WASAPI - fixes #13518

  • Loading branch information...
1 parent 0151446 commit 2feba99c8a510574d13b600047380ca73e38be77 @DDDamian DDDamian committed Nov 17, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 xbmc/settings/GUIWindowSettingsCategory.cpp
View
5 xbmc/settings/GUIWindowSettingsCategory.cpp
@@ -786,13 +786,12 @@ void CGUIWindowSettingsCategory::UpdateSettings()
else if (strSetting.Equals("musicplayer.crossfade"))
{
CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
- if (pControl) pControl->SetEnabled(g_guiSettings.GetString("audiooutput.audiodevice").find("wasapi:") == CStdString::npos);
+ if (pControl) pControl->SetEnabled(true);
@jmarshallnz
Team Kodi member

If you feel like it you could remove this whole block (controls are enabled by default).

Even better - missed the explicit initial set...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
}
else if (strSetting.Equals("musicplayer.crossfadealbumtracks"))
{
CGUIControl *pControl = (CGUIControl *)GetControl(pSettingControl->GetID());
- if (pControl) pControl->SetEnabled(g_guiSettings.GetInt("musicplayer.crossfade") > 0 &&
- g_guiSettings.GetString("audiooutput.audiodevice").find("wasapi:") == CStdString::npos);
+ if (pControl) pControl->SetEnabled(g_guiSettings.GetInt("musicplayer.crossfade") > 0);
}
#ifdef HAS_WEB_SERVER
else if (strSetting.Equals("services.webserverusername") ||

0 comments on commit 2feba99

Please sign in to comment.