mirror of https://github.com/mpv-player/mpv
Allow string escaping via "".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16610 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9f24b5c71f
commit
a949fa9b66
|
@ -262,6 +262,15 @@ static char const * parse_str( char const * str, strarg_t * const valp )
|
|||
match = &str[len];
|
||||
}
|
||||
else
|
||||
if (str[0] == '"') {
|
||||
str = &str[1];
|
||||
match = strchr(str, '"');
|
||||
if (!match)
|
||||
return NULL;
|
||||
valp->len = match - str;
|
||||
valp->str = str;
|
||||
return &match[1];
|
||||
}
|
||||
if ( !match )
|
||||
match = &str[strlen(str)];
|
||||
|
||||
|
|
Loading…
Reference in New Issue