diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-03-30 03:13:17 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-03-31 19:15:08 +0300 |
commit | 0f590fce191097887a81d0a6676cb0a943ce54e4 (patch) | |
tree | 96c5113754a72c72d6cf01255adaa061bfb76018 /mp_core.h | |
parent | 694c067e19dcbabe8f6121923fe628b9bfa6ac32 (diff) | |
download | mpv-0f590fce191097887a81d0a6676cb0a943ce54e4.tar.bz2 mpv-0f590fce191097887a81d0a6676cb0a943ce54e4.tar.xz |
core: Clean up OSD seek info logic
Clean up the code and make the behavior more consistent. Before
bits of the OSD information were triggered in different places, and
various property commands that affect playback position only showed
the seek bar while the main seek command also triggered showing the
percentage in OSD text. Now only the seek and chapter commands trigger
all information and others nothing (which is consistent with most
property behavior).
Diffstat (limited to 'mp_core.h')
-rw-r--r-- | mp_core.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -54,7 +54,12 @@ typedef struct MPContext { struct mp_fifo *key_fifo; struct input_ctx *input; struct osd_state *osd; - int osd_show_percentage; + + bool add_osd_seek_info; + // if nonzero, hide current OSD contents when GetTimerMS() reaches this + unsigned int osd_show_percentage_until; + unsigned int osd_visible; + int osd_function; const ao_functions_t *audio_out; struct play_tree *playtree; |