aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/osx_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-02-19 13:33:03 +0100
committerMax Kellermann <max@duempel.org>2009-02-19 13:33:03 +0100
commite7131b5da256c3d9472e3e3fdb826ae14da13188 (patch)
tree626025b6c71b139b1ab1054e8d0ea495fe53ff69 /src/output/osx_plugin.c
parentc228635489fad76321e1718a53220e7b0b095e98 (diff)
downloadmpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.tar.gz
mpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.tar.xz
mpd-e7131b5da256c3d9472e3e3fdb826ae14da13188.zip
utils: use g_usleep() instead of my_usleep()
Now that I've found this nice function in the GLib docs, we can finally remove our custom sleep function. Still all those callers of g_usleep() have to be migrated one day to use events, instead of regular polling.
Diffstat (limited to '')
-rw-r--r--src/output/osx_plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index f7497ad31..a97f56982 100644
--- a/src/output/osx_plugin.c
+++ b/src/output/osx_plugin.c
@@ -17,7 +17,6 @@
*/
#include "../output_api.h"
-#include "../utils.h"
#include <glib.h>
#include <AudioUnit/AudioUnit.h>
@@ -171,7 +170,7 @@ osx_render(void *vdata,
buffer->mDataByteSize = bufferSize;
if (!bufferSize) {
- my_usleep(1000);
+ g_usleep(1000);
}
return 0;