[MPlayer-cvslog] CVS: main subopt-helper.c,1.7,1.8

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Sep 27 10:52:43 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv13479

Modified Files:
	subopt-helper.c 
Log Message:
Allow string escaping via "".


Index: subopt-helper.c
===================================================================
RCS file: /cvsroot/mplayer/main/subopt-helper.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- subopt-helper.c	16 Jun 2005 09:08:07 -0000	1.7
+++ subopt-helper.c	27 Sep 2005 08:52:40 -0000	1.8
@@ -262,6 +262,15 @@
     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)];
 




More information about the MPlayer-cvslog mailing list