summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-02 23:54:08 +0200
committerwm4 <wm4@nowhere>2015-04-02 23:54:08 +0200
commit5a2825ec35446ae2127c0fb204203cd09738c4ed (patch)
tree90e24f12b16912e1ce2894f28839e716653066d2 /options/options.c
parent19f56e20979d1dbbb4b9956c955d4d0fa27516aa (diff)
downloadmpv-5a2825ec35446ae2127c0fb204203cd09738c4ed.tar.bz2
mpv-5a2825ec35446ae2127c0fb204203cd09738c4ed.tar.xz
video: cleanup stereo mode parsing
Use OPT_CHOICE_C() instead of the custom parser. The functionality is pretty much equivalent. (On a side note, it seems --video-stereo-mode can't be removed, because it controls whether to "reduce" stereo video to mono, which is also the default. In fact I'm not sure how this should be handled at all.)
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index e2a17382d9..e58fb89580 100644
--- a/options/options.c
+++ b/options/options.c
@@ -426,7 +426,7 @@ const m_option_t mp_opts[] = {
OPT_FLAG("force-rgba-osd-rendering", force_rgba_osd, 0),
OPT_CHOICE_OR_INT("video-rotate", video_rotate, 0, 0, 360,
({"no", -1})),
- OPT_VID_STEREO_MODE("video-stereo-mode", video_stereo_mode, 0),
+ OPT_CHOICE_C("video-stereo-mode", video_stereo_mode, 0, mp_stereo3d_names),
OPT_CHOICE_OR_INT("cursor-autohide", cursor_autohide_delay, 0,
0, 30000, ({"no", -1}, {"always", -2})),