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
This commit is contained in:
wm4 2014-10-03 21:57:16 +02:00
parent a74a324b98
commit e64ce83182
1 changed files with 3 additions and 1 deletions

View File

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