From e7131b5da256c3d9472e3e3fdb826ae14da13188 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 Feb 2009 13:33:03 +0100 Subject: 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. --- src/decoder_api.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decoder_api.c') diff --git a/src/decoder_api.c b/src/decoder_api.c index dfb111a95..d1e3e0a08 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -24,7 +24,6 @@ #include "audio.h" #include "song.h" -#include "utils.h" #include "normalize.h" #include "pipe.h" @@ -129,7 +128,7 @@ size_t decoder_read(struct decoder *decoder, /* sleep for a fraction of a second! */ /* XXX don't sleep, wait for an event instead */ - my_usleep(10000); + g_usleep(10000); } } -- cgit v1.2.3