mirror of https://github.com/mpv-player/mpv
fix TYPE_FLOAT parameter reading
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@192 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0a332ce23a
commit
2b80db65e3
|
@ -141,7 +141,7 @@ static int read_option(char *opt, char *param)
|
|||
case CONF_TYPE_FLOAT:
|
||||
if (param == NULL)
|
||||
goto err_missing_param;
|
||||
if (!isdigit(*param)) {
|
||||
if (!isdigit(*param) && *param != '-' && *param != '.') {
|
||||
printf("parameter must be a floating point number:\n");
|
||||
ret = ERR_MISSING_PARAM;
|
||||
goto out;
|
||||
|
|
Loading…
Reference in New Issue