summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-25 20:17:15 +0200
committerwm4 <wm4@nowhere>2014-09-25 21:32:56 +0200
commit9537e33057d99db65bb12d902d660e3b8c47c5ea (patch)
treebeccf48b56ebcdcc4bd722857e643352f7718b8f /player
parent5116c6c242dc2bd9c4f975605b9b07810c7420c2 (diff)
downloadmpv-9537e33057d99db65bb12d902d660e3b8c47c5ea.tar.bz2
mpv-9537e33057d99db65bb12d902d660e3b8c47c5ea.tar.xz
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.
Diffstat (limited to 'player')
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
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)