summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index c5077b43dd..79d3d14655 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -531,8 +531,10 @@ static void handle_osd_redraw(struct MPContext *mpctx)
return;
}
// Don't redraw immediately during a seek (makes it significantly slower).
- if (mpctx->d_video && mp_time_sec() - mpctx->start_timestamp < 0.1)
+ if (mpctx->d_video && mp_time_sec() - mpctx->start_timestamp < 0.1) {
+ mpctx->sleeptime = MPMIN(mpctx->sleeptime, 0.1);
return;
+ }
bool want_redraw = osd_query_and_reset_want_redraw(mpctx->osd) ||
vo_want_redraw(mpctx->video_out);
if (!want_redraw)