aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.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/decoder_api.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/decoder_api.c3
1 files changed, 1 insertions, 2 deletions
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);
}
}