summaryrefslogtreecommitdiffstats
path: root/mp_core.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-03-30 03:13:17 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-03-31 19:15:08 +0300
commit0f590fce191097887a81d0a6676cb0a943ce54e4 (patch)
tree96c5113754a72c72d6cf01255adaa061bfb76018 /mp_core.h
parent694c067e19dcbabe8f6121923fe628b9bfa6ac32 (diff)
downloadmpv-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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mp_core.h b/mp_core.h
index c9a843a78e..13c8f149f0 100644
--- a/mp_core.h
+++ b/mp_core.h
@@ -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;