From e64ce83182db230215ab547386b1ce310025423c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 3 Oct 2014 21:57:16 +0200 Subject: player: properly wakeup when delaying OSD Not sure in which situations this could make a difference; probably none in practice, but it's more correct. CC: @mpv-player/stable --- player/playloop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/playloop.c') 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) -- cgit v1.2.3