summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-04-08 00:00:00 +0200
committerDudemanguy <random342@airmail.cc>2022-04-07 22:13:50 +0000
commitd6affda0a7b4b6b4b35a833820e7e98fd88b6c52 (patch)
treeb347067754d9cab1be8fea3010ca9cf0a0b7c8c2 /options
parent86dfdf083bf4f5b4bb074e850e85a3b133210d38 (diff)
downloadmpv-d6affda0a7b4b6b4b35a833820e7e98fd88b6c52.tar.bz2
mpv-d6affda0a7b4b6b4b35a833820e7e98fd88b6c52.tar.xz
options: add osd-playing-msg-duration
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 64d7f9146e..a8463e29c0 100644
--- a/options/options.c
+++ b/options/options.c
@@ -748,6 +748,8 @@ static const m_option_t mp_opts[] = {
{"term-playing-msg", OPT_STRING(playing_msg)},
{"osd-playing-msg", OPT_STRING(osd_playing_msg)},
+ {"osd-playing-msg-duration", OPT_INT(osd_playing_msg_duration),
+ M_RANGE(0, 3600000)},
{"term-status-msg", OPT_STRING(status_msg), .flags = UPDATE_OSD},
{"osd-status-msg", OPT_STRING(osd_status_msg), .flags = UPDATE_OSD},
{"osd-msg1", OPT_STRING(osd_msg[0]), .flags = UPDATE_OSD},
diff --git a/options/options.h b/options/options.h
index 53e8de7852..fd04ebdfa0 100644
--- a/options/options.h
+++ b/options/options.h
@@ -233,6 +233,7 @@ typedef struct MPOpts {
char *term_title;
char *playing_msg;
char *osd_playing_msg;
+ int osd_playing_msg_duration;
char *status_msg;
char *osd_status_msg;
char *osd_msg[3];