Save audio output state in correct order.

git-svn-id: https://svn.musicpd.org/mpd/trunk@4207 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-05-20 19:56:29 +00:00
parent cabc91b6c6
commit acc620bbda

View File

@ -442,7 +442,7 @@ void saveAudioDevicesState() {
}
assert(audioOutputArraySize != 0);
for (i = audioOutputArraySize - 1; i >= 0; --i) {
for (i = 0; i < audioOutputArraySize; i++) {
myfprintf(fp, AUDIO_DEVICE_STATE "%d:%s\n",
(int)pdAudioDevicesEnabled[i],
audioOutputArray[i]->name);