summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authorwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-12 07:09:10 +0000
committerwight <wight@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-01-12 07:09:10 +0000
commit229554044dc4894313198de46b489449df442e5c (patch)
tree7080158b91b653d0f0afd6c14307e2aaa788a5cb /m_option.c
parentd7154f34b05231a0e6136b2fe53dc0ee911555a0 (diff)
downloadmpv-229554044dc4894313198de46b489449df442e5c.tar.bz2
mpv-229554044dc4894313198de46b489449df442e5c.tar.xz
polish yes/no options support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11782 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'm_option.c')
-rw-r--r--m_option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/m_option.c b/m_option.c
index 3be937f76b..01fdbfdb61 100644
--- a/m_option.c
+++ b/m_option.c
@@ -82,6 +82,7 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr
!strcasecmp(param, "y") ||
!strcasecmp(param, "j") ||
!strcasecmp(param, "i") ||
+ !strcasecmp(param, "tak") ||
!strcmp(param, "1")) {
if(dst) VAL(dst) = opt->max;
} else if (!strcasecmp(param, "no") ||
@@ -90,6 +91,7 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr
!strcasecmp(param, "nicht") ||
!strcasecmp(param, "nem") ||
!strcasecmp(param, "n") ||
+ !strcasecmp(param, "nie") ||
!strcmp(param, "0")) {
if(dst) VAL(dst) = opt->min;
} else {