aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-12-24 17:56:10 +0100
committerMax Kellermann <max@duempel.org>2011-12-24 17:56:10 +0100
commitf405d27c56610b4cd466cf3cf81d4079924168dd (patch)
treee47df0df8fb0f301dbabe1596922ec5d22e3ebc1
parent3a9697adf268d780500cc53432efa4f164db7bb4 (diff)
downloadmpd-f405d27c56610b4cd466cf3cf81d4079924168dd.tar.gz
mpd-f405d27c56610b4cd466cf3cf81d4079924168dd.tar.xz
mpd-f405d27c56610b4cd466cf3cf81d4079924168dd.zip
output/osx: remove sleep call from render callback
Blocking inside the render callback is forbidden, and this sleep call didn't make any sense.
-rw-r--r--NEWS1
-rw-r--r--src/output/osx_plugin.c4
2 files changed, 1 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index acbc242d3..212648f20 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ ver 0.16.7 (2011/??/??)
* output:
- httpd: fix excessive buffering
- openal: force 16 bit playback, as 8 bit doesn't work
+ - osx: remove sleep call from render callback
* fix moving after current song
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index 7639f3bd9..d7abae096 100644
--- a/src/output/osx_plugin.c
+++ b/src/output/osx_plugin.c
@@ -142,10 +142,6 @@ osx_render(void *vdata,
buffer->mDataByteSize = buffer_size;
- if (!buffer_size) {
- g_usleep(1000);
- }
-
return 0;
}