From cbfc001918cf3c562aff1d46822012997c9a8f84 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Jan 2018 04:07:53 +0100 Subject: [PATCH] options: deprecate --vf-defaults and --af-defaults --- DOCS/interface-changes.rst | 6 ++++++ options/options.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst index 7be73e8783..a269859c39 100644 --- a/DOCS/interface-changes.rst +++ b/DOCS/interface-changes.rst @@ -27,6 +27,12 @@ Interface changes - --ytdl is now always enabled, even for libmpv - add a number of --audio-resample-* options, which should from now on be used instead of --af-defaults=lavrresample:... + - deprecate --vf-defaults and --af-defaults. These didn't work with the + lavfi bridge, so they have very little use left. The only potential use + is with af_lavrresample (going to be deprecated, --audio-resample-... set + its defaults), and various hw deinterlacing filters (like vf_vavpp), for + which you will have to stop using --deinterlace=yes, and instead use the + vf toggle commands and the filter enable/disable flag to customize it. --- mpv 0.28.0 --- - rename --hwdec=mediacodec option to mediacodec-copy, to reflect conventions followed by other hardware video decoding APIs diff --git a/options/options.c b/options/options.c index 1de76f53e4..be27344a14 100644 --- a/options/options.c +++ b/options/options.c @@ -486,10 +486,12 @@ const m_option_t mp_opts[] = { // ------------------------- codec/vfilter options -------------------- #if HAVE_LIBAF - OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list, ), + OPT_SETTINGSLIST("af-defaults", af_defs, 0, &af_obj_list, + .deprecation_message = "use --af + enable/disable flags"), OPT_SETTINGSLIST("af", af_settings, 0, &af_obj_list, ), #endif - OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list, ), + OPT_SETTINGSLIST("vf-defaults", vf_defs, 0, &vf_obj_list, + .deprecation_message = "use --vf + enable/disable flags"), OPT_SETTINGSLIST("vf", vf_settings, 0, &vf_obj_list, ), OPT_FLAG("deinterlace", deinterlace, UPDATE_DEINT),