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:
wm4 2014-09-25 20:17:15 +02:00
parent 5116c6c242
commit 9537e33057
1 changed files with 1 additions and 1 deletions

View File

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