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 /filters/user_filters.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 'filters/user_filters.c')
-rw-r--r-- | filters/user_filters.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/filters/user_filters.c b/filters/user_filters.c index cf1764e9c9..c87953551c 100644 --- a/filters/user_filters.c +++ b/filters/user_filters.c @@ -134,16 +134,13 @@ struct mp_filter *mp_create_user_filter(struct mp_filter *parent, const char *name, char **args) { const struct m_obj_list *obj_list = NULL; - const char *defs_name = NULL; enum mp_frame_type frame_type = 0; if (type == MP_OUTPUT_CHAIN_VIDEO) { frame_type = MP_FRAME_VIDEO; obj_list = &vf_obj_list; - defs_name = "vf-defaults"; } else if (type == MP_OUTPUT_CHAIN_AUDIO) { frame_type = MP_FRAME_AUDIO; obj_list = &af_obj_list; - defs_name = "af-defaults"; } assert(frame_type && obj_list); @@ -163,18 +160,9 @@ struct mp_filter *mp_create_user_filter(struct mp_filter *parent, void *options = NULL; if (desc.options) { - struct m_obj_settings *defs = NULL; - if (defs_name) { - mp_read_option_raw(parent->global, defs_name, - &m_option_type_obj_settings_list, &defs); - } - struct m_config *config = m_config_from_obj_desc_and_args(NULL, parent->log, parent->global, - &desc, name, defs, args); - - struct m_option dummy = {.type = &m_option_type_obj_settings_list}; - m_option_free(&dummy, &defs); + &desc, args); if (!config) goto done; |