mirror of https://github.com/mpv-player/mpv
player: fix OSD redraw heuristic with audio-only mode
When using --force-window (and no video or cover art), this heuristic prevents any redrawing during seeking. It should be applied only if there is any form of video.
This commit is contained in:
parent
5116c6c242
commit
9537e33057
|
@ -529,7 +529,7 @@ 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 (mp_time_sec() - mpctx->start_timestamp < 0.1)
|
if (mpctx->d_video && mp_time_sec() - mpctx->start_timestamp < 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);
|
||||||
if (!want_redraw)
|
if (!want_redraw)
|
||||||
|
|
Loading…
Reference in New Issue