From 3ad03f6673b3b1e56020994f90c8cde9f8932b6c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 4 Nov 2015 15:44:37 +0100 Subject: 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().) --- options/m_option.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options/m_option.h') 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 -- cgit v1.2.3