summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-05-25 19:56:52 +0200
committerwm4 <wm4@nowhere>2013-05-26 16:44:20 +0200
commitf44a242258c282eb1407899a64571c39d010285b (patch)
tree0582ab64904258650db3f8631ee8628b8745cf8e /stream
parente56d8a200d900066c3da571d92733f66ce6a13ab (diff)
downloadmpv-f44a242258c282eb1407899a64571c39d010285b.tar.bz2
mpv-f44a242258c282eb1407899a64571c39d010285b.tar.xz
Replace calls to usec_sleep()
This is just dumb sed replacement to mp_sleep_us(). Also remove the now unused usec_sleep() wrapper.
Diffstat (limited to 'stream')
-rw-r--r--stream/cache2.c4
-rw-r--r--stream/stream.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/stream/cache2.c b/stream/cache2.c
index 671bd85c53..302bf6ba17 100644
--- a/stream/cache2.c
+++ b/stream/cache2.c
@@ -441,9 +441,9 @@ static void cache_mainloop(cache_vars_t *s) {
#endif
if (sleep_count < INITIAL_FILL_USLEEP_COUNT) {
sleep_count++;
- usec_sleep(INITIAL_FILL_USLEEP_TIME);
+ mp_sleep_us(INITIAL_FILL_USLEEP_TIME);
} else
- usec_sleep(FILL_USLEEP_TIME); // idle
+ mp_sleep_us(FILL_USLEEP_TIME); // idle
#if FORKED_CACHE
sa.sa_handler = SIG_IGN;
sigaction(SIGUSR1, &sa, NULL);
diff --git a/stream/stream.c b/stream/stream.c
index caf78851c3..27527a422c 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -295,7 +295,7 @@ static int stream_reconnect(stream_t *s)
"Connection lost! Attempting to reconnect...\n");
if (retry)
- usec_sleep(RECONNECT_SLEEP_MS * 1000);
+ mp_sleep_us(RECONNECT_SLEEP_MS * 1000);
s->eof = 1;
stream_reset(s);
@@ -630,7 +630,7 @@ void stream_set_interrupt_callback(int (*cb)(struct input_ctx *, int),
int stream_check_interrupt(int time)
{
if (!stream_check_interrupt_cb) {
- usec_sleep(time * 1000);
+ mp_sleep_us(time * 1000);
return 0;
}
return stream_check_interrupt_cb(stream_check_interrupt_ctx, time);