player: don't delay OSD redraw when paused

We want this heuristic to trigger during normal playback only.
This commit is contained in:
wm4 2014-08-10 13:11:46 +02:00
parent f5257e2c7d
commit ece61bfa10
1 changed files with 4 additions and 2 deletions

View File

@ -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;