Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 2feba99c8a510574d13b600047380ca73e38be77 1 parent 0151446
@DDDamian DDDamian authored
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 Owner

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") ||
Please sign in to comment.
Something went wrong with that request. Please try again.