0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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.
This commit is contained in:
wm4 2014-08-08 00:05:24 +02:00
parent e1ff914679
commit 5f042864f5

View File

@ -168,7 +168,9 @@ void print_status(struct MPContext *mpctx)
char *line = NULL; char *line = NULL;
// Playback status // 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) "); saddf(&line, "(Buffering) ");
} else if (mpctx->paused) { } else if (mpctx->paused) {
saddf(&line, "(Paused) "); saddf(&line, "(Paused) ");