summaryrefslogtreecommitdiffstats
path: root/options/m_config.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-21 13:45:06 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:35 +0200
commit816ad035191970decb17086f5c011edffc257b6c (patch)
tree9a5be112d6ff6cb585460d20d4e89c0724b1775f /options/m_config.h
parent3f061dd62912728bf152c06e7c27b43a3cef312d (diff)
downloadmpv-816ad035191970decb17086f5c011edffc257b6c.tar.bz2
mpv-816ad035191970decb17086f5c011edffc257b6c.tar.xz
m_config: remove extra default_data field
Just wastes memory (a few KB, because there are so many options).
Diffstat (limited to 'options/m_config.h')
-rw-r--r--options/m_config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/m_config.h b/options/m_config.h
index 8a8dba8461..19da75e83c 100644
--- a/options/m_config.h
+++ b/options/m_config.h
@@ -47,7 +47,6 @@ struct m_config_option {
const char *name; // Full name (ie option-subopt)
const struct m_option *opt; // Option description
void *data; // Raw value of the option
- const void *default_data; // Raw default value
};
// Config object
@@ -179,6 +178,8 @@ struct m_config_option *m_config_get_co(const struct m_config *config,
int m_config_get_co_count(struct m_config *config);
struct m_config_option *m_config_get_co_index(struct m_config *config, int index);
+const void *m_config_get_co_default(const struct m_config *config,
+ struct m_config_option *co);
// Return the n-th option by position. n==0 is the first option. If there are
// less than (n + 1) options, return NULL.