summaryrefslogtreecommitdiffstats
path: root/m_option.c
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-08 00:04:42 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-08 00:04:42 +0000
commit52f2a5ce25ba9d9451404e9b49e740dccc8175ba (patch)
tree24a827149356e58f9ba81d5175d2602050650e00 /m_option.c
parentcc3f714afcf23765db576eec4e64c8a67f3423e0 (diff)
downloadmpv-52f2a5ce25ba9d9451404e9b49e740dccc8175ba.tar.bz2
mpv-52f2a5ce25ba9d9451404e9b49e740dccc8175ba.tar.xz
make config accept true/false as parameters
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12776 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 43ae7e83cc..db01d4bd63 100644
--- a/m_option.c
+++ b/m_option.c
@@ -84,6 +84,7 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr
!strcasecmp(param, "i") ||
!strcasecmp(param, "tak") ||
!strcasecmp(param, "ja") ||
+ !strcasecmp(param, "true") ||
!strcmp(param, "1")) {
if(dst) VAL(dst) = opt->max;
} else if (!strcasecmp(param, "no") ||
@@ -94,6 +95,7 @@ static int parse_flag(m_option_t* opt,char *name, char *param, void* dst, int sr
!strcasecmp(param, "n") ||
!strcasecmp(param, "nie") ||
!strcasecmp(param, "nej") ||
+ !strcasecmp(param, "false") ||
!strcmp(param, "0")) {
if(dst) VAL(dst) = opt->min;
} else {