diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-06 19:32:03 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2012-01-10 04:28:27 +0200 |
commit | 5489d0e89a1ed40d585134e7e5161eb92228e349 (patch) | |
tree | 9c1850ea3c5f005c32550995481181495d20dcc1 /mp_core.h | |
parent | b51e1d427eae6c3604e669f220d81516ff833787 (diff) | |
download | mpv-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |