always set open = 0 on closeDevice
git-svn-id: https://svn.musicpd.org/mpd/trunk@2380 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -172,10 +172,11 @@ static void audioOutputAo_closeDevice(AudioOutput * audioOutput) {
|
|||||||
if(ad->device) {
|
if(ad->device) {
|
||||||
blockSignals();
|
blockSignals();
|
||||||
ao_close(ad->device);
|
ao_close(ad->device);
|
||||||
audioOutput->open = 0;
|
|
||||||
ad->device = NULL;
|
ad->device = NULL;
|
||||||
unblockSignals();
|
unblockSignals();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
audioOutput->open = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int audioOutputAo_openDevice(AudioOutput * audioOutput,
|
static int audioOutputAo_openDevice(AudioOutput * audioOutput,
|
||||||
|
Reference in New Issue
Block a user