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.
This commit is contained in:
Max Kellermann
2009-02-19 13:33:03 +01:00
parent c228635489
commit e7131b5da2
6 changed files with 4 additions and 24 deletions

View File

@@ -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);
}
}