From d123af34b5a10f4ff6dc011bc462da68c94ef9fa Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 25 Nov 2019 00:52:30 +0100 Subject: m_config: discourage mp_read_option_raw() This function is dangerous, because it disables the already basic/week type checking the option system has at all. I'm tend towards thinking that all of its uses should be replaced. --- options/m_config.h | 1 + 1 file changed, 1 insertion(+) diff --git a/options/m_config.h b/options/m_config.h index 1b9648bd7f..a897ca053b 100644 --- a/options/m_config.h +++ b/options/m_config.h @@ -338,6 +338,7 @@ void *mp_get_config_group(void *ta_parent, struct mpv_global *global, // Read a single global option in a thread-safe way. For multiple options, // use m_config_cache. The option must exist and match the provided type (the // type is used as a sanity check only). Performs semi-expensive lookup. +// Warning: new code must not use this. void mp_read_option_raw(struct mpv_global *global, const char *name, const struct m_option_type *type, void *dst); -- cgit v1.2.3