From 9537e33057d99db65bb12d902d660e3b8c47c5ea Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 25 Sep 2014 20:17:15 +0200 Subject: 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. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index d5c3ac0713..00067302f2 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -529,7 +529,7 @@ static void handle_osd_redraw(struct MPContext *mpctx) return; } // 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; bool want_redraw = osd_query_and_reset_want_redraw(mpctx->osd); if (!want_redraw) -- cgit v1.2.3