summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-28 22:45:34 +0100
committerwm4 <wm4@nowhere>2014-02-28 22:45:34 +0100
commit97409ec4e652a2d56c3d77764cf9858b19b5cea9 (patch)
tree023a2334844ba3ef355fc10310a87a2e0a203bcc /options
parent1e2d409fb4f08dd73554c8c065292af325bf9f12 (diff)
downloadmpv-97409ec4e652a2d56c3d77764cf9858b19b5cea9.tar.bz2
mpv-97409ec4e652a2d56c3d77764cf9858b19b5cea9.tar.xz
msg: add --msgtime option to add timestamps to each output message
Will be helpful to track down strange wait times and such issues, as well when you have develop something timing related. (Then you may print timestamps in your debug output, and the --msgtime timestamps will help giving context.)
Diffstat (limited to 'options')
-rw-r--r--options/options.c1
-rw-r--r--options/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 202fb42c49..835ff21f9f 100644
--- a/options/options.c
+++ b/options/options.c
@@ -232,6 +232,7 @@ const m_option_t mp_opts[] = {
.type = &m_option_type_msglevels),
OPT_FLAG("msgcolor", msg_color, CONF_GLOBAL | CONF_PRE_PARSE),
OPT_FLAG("msgmodule", msg_module, CONF_GLOBAL),
+ OPT_FLAG("msgtime", msg_time, CONF_GLOBAL),
OPT_FLAG("identify", msg_identify, CONF_GLOBAL),
#if HAVE_PRIORITY
{"priority", &proc_priority, CONF_TYPE_STRING, 0, 0, 0, NULL},
diff --git a/options/options.h b/options/options.h
index 23be601f46..3b9ddeedc7 100644
--- a/options/options.h
+++ b/options/options.h
@@ -50,6 +50,7 @@ typedef struct MPOpts {
int msg_identify;
int msg_color;
int msg_module;
+ int msg_time;
char **reset_options;
char **lua_files;