diff options
author | wm4 <wm4@nowhere> | 2014-10-03 21:57:16 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-10-11 13:55:27 +0200 |
commit | e4f6235a47b7328f9931a0290ce811f1494c9867 (patch) | |
tree | 20bcf384350daf15c495cb226f33bb0a63a085fc | |
parent | 89df07aa6d9aac332b3f03fbc283e9d6c35d3e7e (diff) | |
download | mpv-e4f6235a47b7328f9931a0290ce811f1494c9867.tar.bz2 mpv-e4f6235a47b7328f9931a0290ce811f1494c9867.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
-rw-r--r-- | player/playloop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c index 3ee37d2381..6f55507640 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) |