summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-07-30 21:07:54 +0200
committerwm4 <wm4@nowhere>2012-07-30 22:14:32 +0200
commit7cdfd2ba39cd1a69139d9a2c3788aa8865e37e7d (patch)
tree960eca2b6bce559f11e7f9db7af89c8b899e7ceb /mp_core.h
parent4f86c0a3a46a6f638b1446aa080a594040143ddf (diff)
downloadmpv-7cdfd2ba39cd1a69139d9a2c3788aa8865e37e7d.tar.bz2
mpv-7cdfd2ba39cd1a69139d9a2c3788aa8865e37e7d.tar.xz
mplayer: change how pause status is indicated in terminal
Pausing the player used to print the message "===== PAUSE =====". It also inserted a newline for some reason. When pausing and unpausing a lot, the terminal would be clobbered with "old" useless status lines. Remove the pause message, and display the status message instead. This looks better, doesn't fill up the terminal with crap, and needs less code. Side note: when cache is enabled, the status line is reprinted on every idle iteration to reflect possible cache changes. If the platform's WAKEUP_PERIOD is very small (like on Windows) and terminal output is slow (like on Windows), it's possible that this leads to a minor performance degradation. This is probably not a problem (and I don't care anyway), but maybe something that should be kept in mind. Disabling the status line with --quiet will help.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/mp_core.h b/mp_core.h
index 190b81883f..f216ddf0cb 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -210,9 +210,6 @@ typedef struct MPContext {
// step this many frames, then pause
int step_frames;
- bool status_printed;
- int paused_cache_fill;
-
// Set after showing warning about decoding being too slow for realtime
// playback rate. Used to avoid showing it multiple times.
bool drop_message_shown;