diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-10-20 16:48:22 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-10-20 16:48:22 +0000 |
commit | f4d75d7596c02ed1cc6ff30310268eacfc6e75a8 (patch) | |
tree | 0f229d564f7963cc2710326547683e52d037fd4b /src/audioOutput_ao.c | |
parent | ce5773848cb297043bda7a0ab0cc3e0081bffdcf (diff) | |
download | mpd-f4d75d7596c02ed1cc6ff30310268eacfc6e75a8.tar.gz mpd-f4d75d7596c02ed1cc6ff30310268eacfc6e75a8.tar.xz mpd-f4d75d7596c02ed1cc6ff30310268eacfc6e75a8.zip |
ok, now we're using some of the new audioOutput layer stuff, needs some serious testing, and there maybe some serios BREAKAGE
git-svn-id: https://svn.musicpd.org/mpd/trunk@2279 09075e82-0dd4-0310-85a5-a0d7c8717e4f
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; } |