player: eagerly redraw OSD when seeking with coverart

This commit is contained in:
wm4 2016-04-23 16:39:46 +02:00
parent b1a8e8dba6
commit abb3f80998
1 changed files with 2 additions and 1 deletions

View File

@ -504,7 +504,8 @@ static void handle_osd_redraw(struct MPContext *mpctx)
return;
}
// Don't redraw immediately during a seek (makes it significantly slower).
if (mpctx->vo_chain && mp_time_sec() - mpctx->start_timestamp < 0.1) {
bool use_video = mpctx->vo_chain && !mpctx->vo_chain->is_coverart;
if (use_video && mp_time_sec() - mpctx->start_timestamp < 0.1) {
mpctx->sleeptime = MPMIN(mpctx->sleeptime, 0.1);
return;
}