Mercurial > mplayer.hg
changeset 20314:9bd929836c15
\, escaping
applying my own patch due to lack of anyone objecting to it and as its pretty much needed for -vf geq
author | michael |
---|---|
date | Fri, 20 Oct 2006 16:42:36 +0000 |
parents | 9e085832c423 |
children | 7b34f4f0933d |
files | m_option.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/m_option.c Fri Oct 20 16:14:49 2006 +0000 +++ b/m_option.c Fri Oct 20 16:42:36 2006 +0000 @@ -1672,7 +1672,14 @@ while(ptr[0] != '\0') { last_ptr = ptr; - ptr = strchr(ptr,LIST_SEPARATOR); + for(;;){ + ptr = strchr(ptr,LIST_SEPARATOR); + if(ptr && ptr>last_ptr && ptr[-1]=='\\'){ + memmove(ptr-1, ptr, strlen(ptr)+1); + }else + break; + } + if(!ptr) { r = parse_obj_settings(name,last_ptr,opt->priv,dst ? &res : NULL,n); if(r < 0) {