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_config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'options/m_config.h') diff --git a/options/m_config.h b/options/m_config.h index 89f620b6d3..ed34389921 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -51,6 +51,7 @@ struct m_config_option { /** \ingroup Config */ typedef struct m_config { struct mp_log *log; + struct mpv_global *global; // can be NULL // Registered options. struct m_config_option *opts; // all options, even suboptions -- cgit v1.2.3