diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-05-20 19:56:29 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-05-20 19:56:29 +0000 |
commit | acc620bbdaf01856b1d20a5c44cf349ec7bee9a5 (patch) | |
tree | d2f8752720ae7287cb58550b76da40f39ac32765 /src/audio.c | |
parent | cabc91b6c67bbd668af9ab9c95aa83605d329e87 (diff) | |
download | mpd-acc620bbdaf01856b1d20a5c44cf349ec7bee9a5.tar.gz mpd-acc620bbdaf01856b1d20a5c44cf349ec7bee9a5.tar.xz mpd-acc620bbdaf01856b1d20a5c44cf349ec7bee9a5.zip |
Save audio output state in correct order.
git-svn-id: https://svn.musicpd.org/mpd/trunk@4207 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audio.c')
-rw-r--r-- | src/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c index da0098f12..3469a6825 100644 --- a/src/audio.c +++ b/src/audio.c @@ -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); |