aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/osx_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-01 18:13:05 +0200
committerMax Kellermann <max@duempel.org>2011-09-01 18:21:46 +0200
commit596f36bb78425c8bd6aa4e9a81c796cb78b011c0 (patch)
treeb341712312ffc5d51e381c4f3dbd737b3a43d18b /src/output/osx_plugin.c
parente7abdab58dd566d9b80fb5caf5dee867f184d913 (diff)
downloadmpd-596f36bb78425c8bd6aa4e9a81c796cb78b011c0.tar.gz
mpd-596f36bb78425c8bd6aa4e9a81c796cb78b011c0.tar.xz
mpd-596f36bb78425c8bd6aa4e9a81c796cb78b011c0.zip
output/osx: don't drain the buffer when closing
Eliminate an unnecessary source of deadlocks.
Diffstat (limited to '')
-rw-r--r--src/output/osx_plugin.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index 2c150fc41..7639f3bd9 100644
--- a/src/output/osx_plugin.c
+++ b/src/output/osx_plugin.c
@@ -95,12 +95,6 @@ static void osx_output_close(void *data)
{
struct osx_output *od = data;
- g_mutex_lock(od->mutex);
- while (od->len) {
- g_cond_wait(od->condition, od->mutex);
- }
- g_mutex_unlock(od->mutex);
-
AudioOutputUnitStop(od->au);
AudioUnitUninitialize(od->au);
CloseComponent(od->au);