aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-04 09:14:11 +0100
committerMax Kellermann <max@duempel.org>2014-12-04 09:14:28 +0100
commitc1c0fc79bcdc9caabe42fc3716ea2e2ea7b3eb3d (patch)
tree324bf08fa9ce52166503947a2796d09652cbff58 /src/output
parent02a77f67971b1f0304be773bd69bb3fc1a12fa90 (diff)
downloadmpd-c1c0fc79bcdc9caabe42fc3716ea2e2ea7b3eb3d.tar.gz
mpd-c1c0fc79bcdc9caabe42fc3716ea2e2ea7b3eb3d.tar.xz
mpd-c1c0fc79bcdc9caabe42fc3716ea2e2ea7b3eb3d.zip
output/jack: use usleep() instead of g_usleep()
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/JackOutputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx
index e1dad7893..5651de68a 100644
--- a/src/output/plugins/JackOutputPlugin.cxx
+++ b/src/output/plugins/JackOutputPlugin.cxx
@@ -32,6 +32,7 @@
#include <jack/types.h>
#include <jack/ringbuffer.h>
+#include <unistd.h> /* for usleep() */
#include <stdlib.h>
#include <string.h>
@@ -719,7 +720,7 @@ mpd_jack_play(AudioOutput *ao, const void *chunk, size_t size,
/* XXX do something more intelligent to
synchronize */
- g_usleep(1000);
+ usleep(1000);
}
space /= jack_sample_size;