summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorwm4 <wm4@mplayer2.org>2012-01-06 19:32:03 +0100
committerUoti Urpala <uau@mplayer2.org>2012-01-10 04:28:27 +0200
commit5489d0e89a1ed40d585134e7e5161eb92228e349 (patch)
tree9c1850ea3c5f005c32550995481181495d20dcc1 /mp_core.h
parentb51e1d427eae6c3604e669f220d81516ff833787 (diff)
downloadmpv-5489d0e89a1ed40d585134e7e5161eb92228e349.tar.bz2
mpv-5489d0e89a1ed40d585134e7e5161eb92228e349.tar.xz
core: print pause status message only once on console
Since the recent OSD redraw changes, every GUI expose event causes the message "===== PAUSE =====" to be printed on console. This was a bit annoying, so change it so that it is only printed once when going into paused mode. It's also printed again if the cache status changes (when playing URLs), or when the status line is printed during pause mode (when you seek while paused). This also removes some minor code duplication.
Diffstat (limited to 'mp_core.h')
-rw-r--r--mp_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mp_core.h b/mp_core.h
index 8b36465c5f..e46d3d77d2 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -212,6 +212,9 @@ 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;