mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
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:
parent
a74a324b98
commit
e64ce83182
@ -531,8 +531,10 @@ static void handle_osd_redraw(struct MPContext *mpctx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// Don't redraw immediately during a seek (makes it significantly slower).
|
// 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;
|
return;
|
||||||
|
}
|
||||||
bool want_redraw = osd_query_and_reset_want_redraw(mpctx->osd) ||
|
bool want_redraw = osd_query_and_reset_want_redraw(mpctx->osd) ||
|
||||||
vo_want_redraw(mpctx->video_out);
|
vo_want_redraw(mpctx->video_out);
|
||||||
if (!want_redraw)
|
if (!want_redraw)
|
||||||
|
Loading…
Reference in New Issue
Block a user