diff options
author | wm4 <wm4@nowhere> | 2014-09-25 20:17:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-25 21:32:56 +0200 |
commit | 9537e33057d99db65bb12d902d660e3b8c47c5ea (patch) | |
tree | beccf48b56ebcdcc4bd722857e643352f7718b8f /player/playloop.c | |
parent | 5116c6c242dc2bd9c4f975605b9b07810c7420c2 (diff) | |
download | mpv-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/playloop.c')
-rw-r--r-- | player/playloop.c | 2 |
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) |