diff options
Diffstat (limited to 'src/audioOutput_ao.c')
-rw-r--r-- | src/audioOutput_ao.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c index 6db54f2a5..57b45a6fa 100644 --- a/src/audioOutput_ao.c +++ b/src/audioOutput_ao.c @@ -150,6 +150,7 @@ static void audioOutputAo_closeDevice(AudioOutput * audioOutput) { if(ad->device) { blockSignals(); ao_close(ad->device); + audioOutput->open = 0; ad->device = NULL; unblockSignals(); } @@ -176,6 +177,8 @@ static int audioOutputAo_openDevice(AudioOutput * audioOutput, if(ad->device==NULL) return -1; + audioOutput->open = 1; + return 0; } |