diff options
author | wm4 <wm4@nowhere> | 2013-05-25 19:56:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-26 16:44:20 +0200 |
commit | f44a242258c282eb1407899a64571c39d010285b (patch) | |
tree | 0582ab64904258650db3f8631ee8628b8745cf8e /core | |
parent | e56d8a200d900066c3da571d92733f66ce6a13ab (diff) | |
download | mpv-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 'core')
-rw-r--r-- | core/input/input.c | 2 | ||||
-rw-r--r-- | core/mplayer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/input/input.c b/core/input/input.c index 3d8ba711b7..c9958753cd 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -1436,7 +1436,7 @@ static void read_events(struct input_ctx *ictx, int time) } #else if (time > 0) - usec_sleep(time * 1000); + mp_sleep_us(time * 1000); #endif diff --git a/core/mplayer.c b/core/mplayer.c index 8e077e248d..7aeb91f1b2 100644 --- a/core/mplayer.c +++ b/core/mplayer.c @@ -2029,7 +2029,7 @@ static double timing_sleep(struct MPContext *mpctx, double time_frame) struct MPOpts *opts = &mpctx->opts; double margin = opts->softsleep ? 0.011 : 0; while (time_frame > margin) { - usec_sleep(1000000 * (time_frame - margin)); + mp_sleep_us(1000000 * (time_frame - margin)); time_frame -= get_relative_time(mpctx); } if (opts->softsleep) { |