mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 20:27:23 +00:00
m_option: remove an unused field
This commit is contained in:
parent
3ed173643e
commit
a7c853fc64
@ -3019,15 +3019,6 @@ static int parse_obj_settings(struct mp_log *log, struct bstr opt, int op,
|
|||||||
skip = true;
|
skip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_ret && desc.init_options) {
|
|
||||||
struct m_config *config = m_config_from_obj_desc_noalloc(NULL, log, &desc);
|
|
||||||
bstr s = bstr0(desc.init_options);
|
|
||||||
m_obj_parse_sub_config(log, opt, str, &s, config,
|
|
||||||
M_SETOPT_CHECK_ONLY, nopos, NULL, list, &plist);
|
|
||||||
assert(s.len == 0);
|
|
||||||
talloc_free(config);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (has_param) {
|
if (has_param) {
|
||||||
struct m_config *config = NULL;
|
struct m_config *config = NULL;
|
||||||
if (!skip)
|
if (!skip)
|
||||||
|
@ -123,10 +123,6 @@ struct m_obj_desc {
|
|||||||
const char *options_prefix;
|
const char *options_prefix;
|
||||||
// For free use by the implementer of m_obj_list.get_desc
|
// For free use by the implementer of m_obj_list.get_desc
|
||||||
const void *p;
|
const void *p;
|
||||||
// If not NULL, options which should be set before applying other options.
|
|
||||||
// This member is usually set by m_obj_list_find() only, and read by the
|
|
||||||
// option parser. It's not used anywhere else.
|
|
||||||
const char *init_options;
|
|
||||||
// Don't list entry with "help"
|
// Don't list entry with "help"
|
||||||
bool hidden;
|
bool hidden;
|
||||||
// Callback to print custom help if "vf=entry=help" is passed
|
// Callback to print custom help if "vf=entry=help" is passed
|
||||||
|
Loading…
Reference in New Issue
Block a user