From b18f02d1ad5e5ce4031438f1cd0f1f3aaaf83003 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 1 Dec 2013 00:12:10 +0100 Subject: options: add options that set defaults for af/vf/ao/vo There are some use cases for this. For example, you can use it to set defaults of automatically inserted filters (like af_lavrresample). It's also useful if you have a non-trivial VO configuration, and want to use --vo to quickly change between the drivers without repeating the whole configuration in the --vo argument. --- mpvcore/options.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mpvcore/options.c') diff --git a/mpvcore/options.c b/mpvcore/options.c index f8aad2eeb6..c8112b496d 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -466,7 +466,9 @@ const m_option_t mp_opts[] = { // ------------------------- codec/vfilter options -------------------- + OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list), OPT_SETTINGSLIST("af*", af_settings, 0, &af_obj_list), + OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list), OPT_SETTINGSLIST("vf*", vf_settings, 0, &vf_obj_list), OPT_CHOICE("deinterlace", deinterlace, M_OPT_OPTIONAL_PARAM, @@ -557,7 +559,9 @@ const m_option_t mp_opts[] = { //---------------------- libao/libvo options ------------------------ OPT_SETTINGSLIST("vo", vo.video_driver_list, 0, &vo_obj_list), + OPT_SETTINGSLIST("vo-defaults", vo.vo_defs, 0, &vo_obj_list), OPT_SETTINGSLIST("ao", audio_driver_list, 0, &ao_obj_list), + OPT_SETTINGSLIST("ao-defaults", ao_defs, 0, &ao_obj_list), OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL), OPT_FLAG("force-window", force_vo, CONF_GLOBAL), OPT_FLAG("ontop", vo.ontop, 0), -- cgit v1.2.3