diff options
author | wm4 <wm4@nowhere> | 2015-11-04 15:44:37 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-04 21:49:54 +0100 |
commit | 3ad03f6673b3b1e56020994f90c8cde9f8932b6c (patch) | |
tree | ca0b6c4c1bdd55f7ba826d6cdf60931e4d836400 /options/m_option.h | |
parent | f00edfd9c57367478927cb58adbbc21e3d62e237 (diff) |
options: handle terminal/logging settings eagerly
Update msg.c state immediately if a terminal or logging setting is set.
Until now, this was delayed until mp[v]_initialize() was called. When
using the client API, you could easily miss logged error messages, even
when logging was initialized early on by calling
mpv_request_log_messages().
(Properties can't be used for this either, because properties do not
work before mpv_initialize().)
Diffstat (limited to 'options/m_option.h')
-rw-r--r-- | options/m_option.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/options/m_option.h b/options/m_option.h index 17756885d9..320a9e5b99 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -363,6 +363,9 @@ struct m_option { // The option expects a file name (or a list of file names) #define M_OPT_FILE (1 << 11) +// Logging-related option - used to update log/terminal settings eagerly +#define M_OPT_TERM (1 << 12) + // These are kept for compatibility with older code. #define CONF_MIN M_OPT_MIN #define CONF_MAX M_OPT_MAX |