diff options
author | wm4 <wm4@nowhere> | 2014-08-08 00:05:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-08 00:05:24 +0200 |
commit | 5f042864f5f0a0d0b785bbede81f4628ba478c87 (patch) | |
tree | 1edbba9d2fe30cd2ca4e414461cfdf30938b9cd6 | |
parent | e1ff914679300ec4d734f3b90d7e0a5fdaf5cbc2 (diff) | |
download | mpv-5f042864f5f0a0d0b785bbede81f4628ba478c87.tar.bz2 mpv-5f042864f5f0a0d0b785bbede81f4628ba478c87.tar.xz |
player: indicate on the status line whether a seek is active
This is delayed by 300ms - before that, the status doesn't change. I
feel like it would too annoying if the status line would "flicker" on
normal seek by quickly showing and hiding the indicator.
-rw-r--r-- | player/osd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/osd.c b/player/osd.c index 2c0986e2df..e8c0547c11 100644 --- a/player/osd.c +++ b/player/osd.c @@ -168,7 +168,9 @@ void print_status(struct MPContext *mpctx) char *line = NULL; // Playback status - if (mpctx->paused_for_cache && !opts->pause) { + if (!mpctx->restart_complete && mp_time_sec() - mpctx->start_timestamp > 0.3) { + saddf(&line, "(...) "); + } else if (mpctx->paused_for_cache && !opts->pause) { saddf(&line, "(Buffering) "); } else if (mpctx->paused) { saddf(&line, "(Paused) "); |