aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutput_ao.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audioOutput_ao.c')
-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,