From 59fff90d94e01ae7cf5c3ff3a274020f4d4b2785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Fri, 18 Feb 2011 15:32:40 +0100 Subject: 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. --- cfg-common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cfg-common.h') 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), -- cgit v1.2.3