diff options
author | Dudemanguy <random342@airmail.cc> | 2023-09-19 23:51:51 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-21 16:06:29 +0000 |
commit | 177fe48d794c0a52fe0f14e1d66bc3696348997f (patch) | |
tree | 72b9a93e19af290ba7615078f19cdea924a651ea /options/m_config_frontend.c | |
parent | fb46666395d4b2693365db69d34e6080cfbf06dc (diff) | |
download | mpv-177fe48d794c0a52fe0f14e1d66bc3696348997f.tar.bz2 mpv-177fe48d794c0a52fe0f14e1d66bc3696348997f.tar.xz |
options: remove --vf-defaults and --af-defaults
These were deprecated a long time ago and apparently didn't even work
with lavfi filters. Go ahead and remove them and additionally clean up
some code related to them. m_config_from_obj_desc_and_args becomes much
simpler now and a couple of arguments can be completely removed.
Diffstat (limited to 'options/m_config_frontend.c')
-rw-r--r-- | options/m_config_frontend.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/options/m_config_frontend.c b/options/m_config_frontend.c index 5a6db46d83..8ad12e5d80 100644 --- a/options/m_config_frontend.c +++ b/options/m_config_frontend.c @@ -168,18 +168,9 @@ static int m_config_set_obj_params(struct m_config *config, struct mp_log *log, struct m_config *m_config_from_obj_desc_and_args(void *ta_parent, struct mp_log *log, struct mpv_global *global, struct m_obj_desc *desc, - const char *name, struct m_obj_settings *defaults, char **args) + char **args) { struct m_config *config = m_config_from_obj_desc(ta_parent, log, global, desc); - - for (int n = 0; defaults && defaults[n].name; n++) { - struct m_obj_settings *entry = &defaults[n]; - if (name && strcmp(entry->name, name) == 0) { - if (m_config_set_obj_params(config, log, global, desc, entry->attribs) < 0) - goto error; - } - } - if (m_config_set_obj_params(config, log, global, desc, args) < 0) goto error; |