summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-03 21:57:16 +0200
committerwm4 <wm4@nowhere>2014-10-03 23:10:08 +0200
commite64ce83182db230215ab547386b1ce310025423c (patch)
treec89e4819dac046a81fe7c71806c7e2d3fd73d6ab /player/playloop.c
parenta74a324b98a2484995cdf9206f0e586a7249f1af (diff)
downloadmpv-e64ce83182db230215ab547386b1ce310025423c.tar.bz2
mpv-e64ce83182db230215ab547386b1ce310025423c.tar.xz
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
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)