summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/input/input.c2
-rw-r--r--core/mplayer.c2
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) {