Skip to content

Commit

Permalink
[osx/ios] - save the sinkname instead of the device label to guisetti…
Browse files Browse the repository at this point in the history
…ngs.xml (somehow we forgot about darwin when that was changed...)
  • Loading branch information
Memphiz committed Nov 28, 2012
1 parent 64f2b46 commit 2171b56
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xbmc/settings/GUIWindowSettingsCategory.cpp
Expand Up @@ -1954,7 +1954,12 @@ void CGUIWindowSettingsCategory::OnSettingChanged(CBaseSettingControl *pSettingC
{
CGUISpinControlEx *pControl = (CGUISpinControlEx *)GetControl(pSettingControl->GetID());
#if defined(TARGET_DARWIN)
g_guiSettings.SetString("audiooutput.audiodevice", pControl->GetCurrentLabel());
// save the sinkname - since we don't have sinks on osx
// we need to get the fitting sinkname for the device label from the
// factory
std::string label2sink = pControl->GetCurrentLabel();
CAEFactory::VerifyOutputDevice(label2sink, false);
g_guiSettings.SetString("audiooutput.audiodevice", label2sink.c_str());
#else
g_guiSettings.SetString("audiooutput.audiodevice", m_AnalogAudioSinkMap[pControl->GetCurrentLabel()]);
#endif
Expand Down

0 comments on commit 2171b56

Please sign in to comment.