From 732ee3474ac23a16f0ed7e791c0a5f8160a11ebd Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 1 Apr 2008 17:35:10 +0300 Subject: Move options "vo" and "ao" to common struct --- cfg-mplayer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cfg-mplayer.h') diff --git a/cfg-mplayer.h b/cfg-mplayer.h index 462e09f7f1..981a7a83ba 100644 --- a/cfg-mplayer.h +++ b/cfg-mplayer.h @@ -89,6 +89,7 @@ const m_option_t tvscan_conf[]={ #define FLAG_ON(optname, varname, flags) {optname, NULL, CONF_TYPE_FLAG, flags, 0, 1, NULL, 1, offsetof(struct MPOpts, varname)} #define FLAG_OFF(optname, varname, flags) {optname, NULL, CONF_TYPE_FLAG, flags, 1, 0, NULL, 1, offsetof(struct MPOpts, varname)} +#define STRINGLIST(optname, varname, flags) {optname, NULL, CONF_TYPE_STRING_LIST, flags, 0, 0, NULL, 1, offsetof(struct MPOpts, varname)} const m_option_t mplayer_opts[]={ /* name, pointer, type, flags, min, max */ @@ -96,8 +97,8 @@ const m_option_t mplayer_opts[]={ //---------------------- libao/libvo options ------------------------ {"o", "Option -o has been renamed to -vo (video-out), use -vo.\n", CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL}, - {"vo", &video_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, - {"ao", &audio_driver_list, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL}, + STRINGLIST("vo", video_driver_list, 0), + STRINGLIST("ao", audio_driver_list, 0), FLAG_ON("fixed-vo", fixed_vo, CONF_GLOBAL), FLAG_OFF("nofixed-vo", fixed_vo, CONF_GLOBAL), {"ontop", &vo_ontop, CONF_TYPE_FLAG, 0, 0, 1, NULL}, -- cgit v1.2.3