From e79efd28f8f3f539ca976733ff4209e372dcb5ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 25 Sep 2012 03:24:38 +0200 Subject: 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. --- mp_core.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mp_core.h') diff --git a/mp_core.h b/mp_core.h index c786663182..111372bcc2 100644 --- a/mp_core.h +++ b/mp_core.h @@ -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; -- cgit v1.2.3