aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-28 12:58:20 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-28 12:58:20 +0000
commit82625dbf1ae8cc12c8c4e59c1754756166497ab3 (patch)
treed0eb22fc3b4368c89265f79849fa50f97f108d98 /src
parentb7755020a351b144b3ae8178c4954406a359c1cd (diff)
downloadmpd-82625dbf1ae8cc12c8c4e59c1754756166497ab3.tar.gz
mpd-82625dbf1ae8cc12c8c4e59c1754756166497ab3.tar.xz
mpd-82625dbf1ae8cc12c8c4e59c1754756166497ab3.zip
always set open = 0 on closeDevice
git-svn-id: https://svn.musicpd.org/mpd/trunk@2380 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutput_ao.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c
index 60c4ea402..e904de322 100644
--- a/src/audioOutput_ao.c
+++ b/src/audioOutput_ao.c
@@ -172,10 +172,11 @@ static void audioOutputAo_closeDevice(AudioOutput * audioOutput) {
if(ad->device) {
blockSignals();
ao_close(ad->device);
- audioOutput->open = 0;
ad->device = NULL;
unblockSignals();
}
+
+ audioOutput->open = 0;
}
static int audioOutputAo_openDevice(AudioOutput * audioOutput,