summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-15 18:53:51 +0100
committerwm4 <wm4@nowhere>2012-11-16 21:21:15 +0100
commit269f7df18bcb01229429690dfdbbcdf98369814a (patch)
treefb2cc43a10bc6b4599fde1d91eb095b20cc8cd82 /core/cfg-mplayer.h
parent51503a05778290edc0bb77276b67d33ca0e10783 (diff)
downloadmpv-269f7df18bcb01229429690dfdbbcdf98369814a.tar.bz2
mpv-269f7df18bcb01229429690dfdbbcdf98369814a.tar.xz
options: --field-dominance: replace magic number values with choices
--field-dominance=-1 becomes --field-dominance=auto --field-dominance=0 becomes --field-dominance=top --field-dominance=1 becomes --field-dominance=bottom
Diffstat (limited to 'core/cfg-mplayer.h')
-rw-r--r--core/cfg-mplayer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index b6e947be5f..a83c16d271 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -489,7 +489,8 @@ const m_option_t common_opts[] = {
OPT_MAKE_FLAGS("slices", vd_use_slices, 0),
// use (probably completely broken) decoder direct rendering
OPT_MAKE_FLAGS("dr1", vd_use_dr1, 0),
- {"field-dominance", &field_dominance, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
+ {"field-dominance", &field_dominance, CONF_TYPE_CHOICE, 0,
+ M_CHOICES(({"auto", -1}, {"top", 0}, {"bottom", 1}))},
{"lavdopts", (void *) lavc_decode_opts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
{"lavfdopts", (void *) lavfdopts_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},