diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-02-18 15:32:40 +0100 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-04-20 04:22:42 +0300 |
commit | 59fff90d94e01ae7cf5c3ff3a274020f4d4b2785 (patch) | |
tree | a6f161866ae6918c4d2a2aebd9327716f3b53ea2 /cfg-common.h | |
parent | 2a7c5a1365ad194a42e3f667f85828a152544857 (diff) | |
download | mpv-59fff90d94e01ae7cf5c3ff3a274020f4d4b2785.tar.bz2 mpv-59fff90d94e01ae7cf5c3ff3a274020f4d4b2785.tar.xz |
options: change -alang and -slang to use string list type
There is no reason to use manual language list splitting when an
automatic split function is already available.
Some types change from "unsigned char" to "char", but this shouldn't
cause issues since [as]lang settings are unlikely to have characters
above 127.
Diffstat (limited to 'cfg-common.h')
-rw-r--r-- | cfg-common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cfg-common.h b/cfg-common.h index e56d87b3de..6e74eb66cc 100644 --- a/cfg-common.h +++ b/cfg-common.h @@ -506,8 +506,8 @@ const m_option_t common_opts[] = { OPT_FLAG_CONSTANTS("novideo", video_id, 0, -1, -2), OPT_FLAG_CONSTANTS("sound", audio_id, 0, -2, -1), OPT_FLAG_CONSTANTS("nosound", audio_id, 0, -1, -2), - OPT_STRING("alang", audio_lang, 0), - OPT_STRING("slang", sub_lang, 0), + OPT_STRINGLIST("alang", audio_lang, 0), + OPT_STRINGLIST("slang", sub_lang, 0), OPT_MAKE_FLAGS("hr-mp3-seek", hr_mp3_seek, 0), |