diff options
author | wm4 <wm4@nowhere> | 2013-02-16 20:50:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-16 20:50:05 +0100 |
commit | f897138c2d4647cf2a7bbd0c58dc08c1f400fd48 (patch) | |
tree | 9bb1f4f0f3d4ba5de1e5a2a1e2c39132dec8f8a7 /core/mp_osd.h | |
parent | 57879a22004144bf9e20a97eea5ef3c1c1fbbfd9 (diff) | |
download | mpv-f897138c2d4647cf2a7bbd0c58dc08c1f400fd48.tar.bz2 mpv-f897138c2d4647cf2a7bbd0c58dc08c1f400fd48.tar.xz |
osd: always update already visible OSD bar on seeks
Seeks can be performed with OSD bar invisible (e.g. "osd-msg seek ..."
command), and then an already visible bar won't be updated. But the bar
will stick around until the OSD text is hidden. This is confusing, so
change it that the bar is updated. (Making the bar disappear on such
seeks would require much more changes, so we're lazy and go with this
commit.)
Diffstat (limited to 'core/mp_osd.h')
-rw-r--r-- | core/mp_osd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/mp_osd.h b/core/mp_osd.h index d0ebc02639..0b737f0c22 100644 --- a/core/mp_osd.h +++ b/core/mp_osd.h @@ -37,6 +37,8 @@ #define MAX_TERM_OSD_LEVEL 1 #define OSD_LEVEL_INVISIBLE 4 +#define OSD_BAR_SEEK 256 + struct MPContext; void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,double max,double val); |