From 5f042864f5f0a0d0b785bbede81f4628ba478c87 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Aug 2014 00:05:24 +0200 Subject: 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. --- player/osd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) "); -- cgit v1.2.3