summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-11-09 15:42:40 +0100
committersfan5 <sfan5@live.de>2022-11-10 16:19:37 +0100
commitac3966184bc3ab2f475c8b28d4e5d749d07c0177 (patch)
tree3d78f7af56b0b7a3767fc59ac0ef17c7363b608b
parent175e2500383ba29dfb6e40a86bdcbc3cf52d2c5d (diff)
downloadmpv-ac3966184bc3ab2f475c8b28d4e5d749d07c0177.tar.bz2
mpv-ac3966184bc3ab2f475c8b28d4e5d749d07c0177.tar.xz
vo_gpu: mark --gamma-factor and --gamma-auto with deprecation warnings
This was forgotten in commit 2207236aaae54f32c1861c6fd77219e28139dc78.
-rw-r--r--video/out/gpu/video.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c
index 9a78d69ead..65a696cc38 100644
--- a/video/out/gpu/video.c
+++ b/video/out/gpu/video.c
@@ -366,8 +366,10 @@ const struct m_sub_options gl_video_conf = {
.opts = (const m_option_t[]) {
{"gpu-dumb-mode", OPT_CHOICE(dumb_mode,
{"auto", 0}, {"yes", 1}, {"no", -1})},
- {"gamma-factor", OPT_FLOAT(gamma), M_RANGE(0.1, 2.0)},
- {"gamma-auto", OPT_FLAG(gamma_auto)},
+ {"gamma-factor", OPT_FLOAT(gamma), M_RANGE(0.1, 2.0),
+ .deprecation_message = "no replacement"},
+ {"gamma-auto", OPT_FLAG(gamma_auto),
+ .deprecation_message = "no replacement"},
{"target-prim", OPT_CHOICE_C(target_prim, mp_csp_prim_names)},
{"target-trc", OPT_CHOICE_C(target_trc, mp_csp_trc_names)},
{"target-peak", OPT_CHOICE(target_peak, {"auto", 0}),