mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
player: don't delay OSD redraw when paused
We want this heuristic to trigger during normal playback only.
This commit is contained in:
parent
f5257e2c7d
commit
ece61bfa10
@ -509,8 +509,10 @@ static void handle_osd_redraw(struct MPContext *mpctx)
|
||||
return;
|
||||
// If we're playing normally, let OSD be redrawn naturally as part of
|
||||
// video display.
|
||||
if (mpctx->sleeptime < 0.1 && mpctx->video_status == STATUS_PLAYING)
|
||||
return;
|
||||
if (!mpctx->paused) {
|
||||
if (mpctx->sleeptime < 0.1 && mpctx->video_status == STATUS_PLAYING)
|
||||
return;
|
||||
}
|
||||
// Don't redraw immediately during a seek (makes it significantly slower).
|
||||
if (mp_time_sec() - mpctx->start_timestamp < 0.1)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user