summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-12-23 18:12:54 +0100
committerwm4 <wm4@nowhere>2016-12-23 18:12:54 +0100
commit1d5e95783e0bf05149fa6d5dc8a8aed3d02ff2e9 (patch)
tree86fecf9232dba7bb5fa174fbb9903fcc7b5a1c3d
parent9d21f2503f28a7be0e493ab18a4acbaae02c3d0a (diff)
downloadmpv-1d5e95783e0bf05149fa6d5dc8a8aed3d02ff2e9.tar.bz2
mpv-1d5e95783e0bf05149fa6d5dc8a8aed3d02ff2e9.tar.xz
options: explicitly deprecate --ad-spdif-dtshd
Has been less formally deprecated for a longer time.
-rw-r--r--DOCS/interface-changes.rst2
-rw-r--r--options/options.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/DOCS/interface-changes.rst b/DOCS/interface-changes.rst
index 9f61a13e59..7756aceb85 100644
--- a/DOCS/interface-changes.rst
+++ b/DOCS/interface-changes.rst
@@ -46,6 +46,8 @@ Interface changes
- change how spdif codecs are selected. You can't enable spdif passthrough
with --ad anymore. This was deprecated; use --audio-spdif instead.
- deprecate the "family" selection with --ad/--vd
+ - explicitly mark --ad-spdif-dtshd as deprecated (it was done so a long time
+ ago, but it didn't complain when using the option)
--- mpv 0.22.0 ---
- the "audio-device-list" property now sets empty device description to the
device name as a fallback
diff --git a/options/options.c b/options/options.c
index 108c805de7..f79df7d82f 100644
--- a/options/options.c
+++ b/options/options.c
@@ -426,7 +426,8 @@ const m_option_t mp_opts[] = {
OPT_STRING("audio-spdif", audio_spdif, 0),
- OPT_FLAG("ad-spdif-dtshd", dtshd, 0),
+ OPT_FLAG("ad-spdif-dtshd", dtshd, 0,
+ .deprecation_message = "use --audio-spdif instead"),
OPT_CHOICE_C("hwdec", hwdec_api, 0, mp_hwdec_names),
OPT_STRING("hwdec-codecs", hwdec_codecs, 0),