summaryrefslogtreecommitdiffstats
path: root/cfg-common.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2011-02-08 00:35:51 +0100
committerUoti Urpala <uau@mplayer2.org>2011-04-20 04:22:52 +0300
commit4587f030ccded80f3ddb21dab2bca36af42fe497 (patch)
tree80f2750f15e69b8db0d561626ef5a920747648c0 /cfg-common.h
parent59fff90d94e01ae7cf5c3ff3a274020f4d4b2785 (diff)
downloadmpv-4587f030ccded80f3ddb21dab2bca36af42fe497.tar.bz2
mpv-4587f030ccded80f3ddb21dab2bca36af42fe497.tar.xz
options: move sub_name, sub_auto and vobsub_name to struct
Diffstat (limited to 'cfg-common.h')
-rw-r--r--cfg-common.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/cfg-common.h b/cfg-common.h
index 6e74eb66cc..b2df2ade0d 100644
--- a/cfg-common.h
+++ b/cfg-common.h
@@ -628,7 +628,7 @@ const m_option_t common_opts[] = {
{"codecs-file", &codecs_file, CONF_TYPE_STRING, 0, 0, 0, NULL},
// ------------------------- subtitles options --------------------
- {"sub", &sub_name, CONF_TYPE_STRING_LIST, 0, 0, 0, NULL},
+ OPT_STRINGLIST("sub", sub_name, 0),
#ifdef CONFIG_FRIBIDI
{"fribidi-charset", &fribidi_charset, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"flip-hebrew", &flip_hebrew, CONF_TYPE_FLAG, 0, 0, 1, NULL},
@@ -647,8 +647,7 @@ const m_option_t common_opts[] = {
#endif
{"subdelay", &sub_delay, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
{"subfps", &sub_fps, CONF_TYPE_FLOAT, 0, 0.0, 10.0, NULL},
- {"autosub", &sub_auto, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- {"noautosub", &sub_auto, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ OPT_MAKE_FLAGS("autosub", sub_auto, 0),
{"unicode", &sub_unicode, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nounicode", &sub_unicode, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"utf8", &sub_utf8, CONF_TYPE_FLAG, 0, 0, 1, NULL},