diff options
author | wm4 <wm4@nowhere> | 2016-08-28 18:15:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-28 18:26:59 +0200 |
commit | 5086b2d4568bfd8b39a4418a2db4dbfbb1fae92f (patch) | |
tree | 32488fc28c014e96a83c575eb728443020f5557c /options/options.c | |
parent | 7af6e64db748f71b472cd2b70ef7ebbe9da97859 (diff) | |
download | mpv-5086b2d4568bfd8b39a4418a2db4dbfbb1fae92f.tar.bz2 mpv-5086b2d4568bfd8b39a4418a2db4dbfbb1fae92f.tar.xz |
player: add option to disable video OSD
Normally, OSD can be disabled with --osd-level=0. But this also disables
terminal OSD, and some users want _only_ the terminal OSD. Add
--video-osd=no, which essentially disables the video OSD.
Ideally, it should probably be possible to control terminal and video
OSD levels independently, but that would require separate OSD timers
(and other state) for both components, so don't do it. But because the
current situation isn't too ideal, add a threat to the manpage that
might be changed in the future.
Fixes #3387.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 0ef89650a3..129f0cc53c 100644 --- a/options/options.c +++ b/options/options.c @@ -589,6 +589,8 @@ const m_option_t mp_opts[] = { OPT_STRING("osd-msg2", osd_msg[1], 0), OPT_STRING("osd-msg3", osd_msg[2], 0), + OPT_FLAG("video-osd", video_osd, 0), + OPT_CHOICE("idle", player_idle_mode, 0, ({"no", 0}, {"once", 1}, @@ -739,6 +741,7 @@ const struct MPOpts mp_default_opts = { .gamma_contrast = 1000, .gamma_saturation = 1000, .gamma_hue = 1000, + .video_osd = 1, .osd_level = 1, .osd_duration = 1000, .osd_bar_align_y = 0.5, |