From 830560979c02b4e06924a813cf9bacb1629d40c9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Sep 2012 03:32:01 +0200 Subject: options: change handling of "no-" options Normally, all flag options can be negated by prepending a "no-", for example "--no-opt" becomes "--opt=no". Some flag options can't actually be negated, so add a CONF_TYPE_STORE option type to disallow the "no-" fallback. Do the same for choice options. Remove the explicit "no-" prefixed options, add "no" as choice. Move the handling of automatic "no-" options from parser-mpcmd.c to m_config.c, and use it in m_config_set_option/m_config_parse_option. This makes these options available in the config file. It also simplifies sub-option parsing, because it doesn't need to handle "no-" anymore. --- video/out/vo_vdpau.c | 1 - 1 file changed, 1 deletion(-) (limited to 'video') diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index 85bf635b11..295770c80e 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -1643,7 +1643,6 @@ const struct vo_driver video_out_vdpau = { .options = (const struct m_option []){ OPT_INTRANGE("deint", deint, 0, -4, 4), OPT_FLAG_ON("chroma-deint", chroma_deint, 0, OPTDEF_INT(1)), - OPT_FLAG_OFF("nochroma-deint", chroma_deint, 0), OPT_MAKE_FLAGS("pullup", pullup, 0), OPT_FLOATRANGE("denoise", denoise, 0, 0, 1), OPT_FLOATRANGE("sharpen", sharpen, 0, -1, 1), -- cgit v1.2.3