1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

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.
This commit is contained in:
wm4 2019-11-25 00:52:30 +01:00
parent 3a2dc8b22e
commit d123af34b5

View File

@ -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);