aboutsummaryrefslogtreecommitdiffstats
path: root/src/audioOutputs/audioOutput_osx.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-24 07:20:36 +0200
committerMax Kellermann <max@duempel.org>2008-09-24 07:20:36 +0200
commit2403d32a5007572f853c7782957f86aedf3d3aff (patch)
treefe25886d65f49f3c18cd306a7ee4a94aeea3d24e /src/audioOutputs/audioOutput_osx.c
parent3cae6856b8c6096b3f932a4ab30476a8d1187e58 (diff)
downloadmpd-2403d32a5007572f853c7782957f86aedf3d3aff.tar.gz
mpd-2403d32a5007572f853c7782957f86aedf3d3aff.tar.xz
mpd-2403d32a5007572f853c7782957f86aedf3d3aff.zip
output: set audio_output->open=1 in audio_output_task()
Since the output plugin returns a value indicating success or error, we can have the output core code assign the "open" flag.
Diffstat (limited to 'src/audioOutputs/audioOutput_osx.c')
-rw-r--r--src/audioOutputs/audioOutput_osx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/audioOutputs/audioOutput_osx.c b/src/audioOutputs/audioOutput_osx.c
index 260489caa..b87504bd5 100644
--- a/src/audioOutputs/audioOutput_osx.c
+++ b/src/audioOutputs/audioOutput_osx.c
@@ -132,8 +132,6 @@ static void osx_closeDevice(struct audio_output *audioOutput)
CloseComponent(od->au);
AudioUnitUninitialize(od->au);
-
- audioOutput->open = 0;
}
static OSStatus osx_render(void *vdata,
@@ -292,8 +290,6 @@ static int osx_openDevice(struct audio_output *audioOutput,
od->pos = 0;
od->len = 0;
- audioOutput->open = 1;
-
return 0;
}