From 5a2825ec35446ae2127c0fb204203cd09738c4ed Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 2 Apr 2015 23:54:08 +0200 Subject: 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.) --- options/m_option.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'options/m_option.h') diff --git a/options/m_option.h b/options/m_option.h index a07c5a1082..eb6121d8a0 100644 --- a/options/m_option.h +++ b/options/m_option.h @@ -57,7 +57,6 @@ extern const m_option_type_t m_option_type_msglevels; extern const m_option_type_t m_option_type_print_fn; extern const m_option_type_t m_option_type_subconfig; extern const m_option_type_t m_option_type_imgfmt; -extern const m_option_type_t m_option_vid_stereo_mode; extern const m_option_type_t m_option_type_fourcc; extern const m_option_type_t m_option_type_afmt; extern const m_option_type_t m_option_type_color; @@ -665,9 +664,6 @@ extern const char m_option_path_separator; #define OPT_TRACKCHOICE(name, var) \ OPT_CHOICE_OR_INT(name, var, 0, 0, 8190, ({"no", -2}, {"auto", -1})) -#define OPT_VID_STEREO_MODE(...) \ - OPT_GENERAL(int, __VA_ARGS__, .type = &m_option_vid_stereo_mode) - #define OPT_STRING_VALIDATE_(optname, varname, flags, validate_fn, ...) \ OPT_GENERAL(char*, optname, varname, flags, __VA_ARGS__, \ .priv = MP_EXPECT_TYPE(m_opt_string_validate_fn, validate_fn)) -- cgit v1.2.3