xbmc/xbmc — pull request #1828 by Montellese (2012-11-21 23:44:46+00:00)
Title: settings: improve migration of audio output settings from (pre-)Eden to Frodo

These commits improve the migration of the audiooutput settings from (pre-)Eden to Frodo by replacing audiooutput.channellayout with audiooutput.channels (the meaning of the values have changed) and uses an existance check on audiooutput.channellayout to realize that we are performing an update to Frodo. That way we can actually migrate the value from audiooutput.channellayout to audiooutput.channels and also reset the value of audiooutput.audiodevice to its default value because that value is not migrateable either (at least not on win32).

There's also a fix in CGUIWindowSettingsCategory which currently shows the old value in the list of choices for audiooutput.audiodevice. IMO presenting the user with a non-existing and wrong option to choose from is a very bad idea as there's no indication in the GUI that this value is invalid.