diff options
author | wm4 <wm4@nowhere> | 2012-09-25 03:24:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-12 10:10:32 +0200 |
commit | e79efd28f8f3f539ca976733ff4209e372dcb5ed (patch) | |
tree | 885b7f85ed7d1b074de5042b38624fdeb516b54b /mp_core.h | |
parent | 88849fd1d4056bc22305cc4433dc56360dd6d0e9 (diff) | |
download | mpv-e79efd28f8f3f539ca976733ff4209e372dcb5ed.tar.bz2 mpv-e79efd28f8f3f539ca976733ff4209e372dcb5ed.tar.xz |
commands: more user-control whether a command shows OSD bars/messages
The "no-osd" prefix was introduced earlier to disable OSD selectively
based on the key binding. Extend this, and allow the user to force
display of an OSD bar ("osd-bar"), OSD message ("osd-msg") or both
("osd-msg-bar"). This changes mainly how property setting functions
behave.
The default behavior is still the same.
Diffstat (limited to 'mp_core.h')
-rw-r--r-- | mp_core.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -77,6 +77,13 @@ struct chapter { char *name; }; +enum mp_osd_seek_info { + OSD_SEEK_INFO_BAR = 1, + OSD_SEEK_INFO_TEXT = 2, + OSD_SEEK_INFO_CHAPTER_TEXT = 4, + OSD_SEEK_INFO_EDITION = 8, +}; + struct track { enum stream_type type; // The type specific ID, also called aid (audio), sid (subs), vid (video). @@ -127,7 +134,7 @@ typedef struct MPContext { char *terminal_osd_text; subtitle subs; // subtitle list used when reading subtitles from demuxer - bool add_osd_seek_info; + int add_osd_seek_info; // bitfield of enum mp_osd_seek_info unsigned int osd_visible; int osd_function; |