Revert "parse: escape \ with a \ as well, so that we don't lose the \ when unescaping"
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 Jul 2012 07:44:10 +0000 (09:44 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 Jul 2012 08:04:25 +0000 (10:04 +0200)
This reverts commit dd9fedb41f1ada8e1f8bd5346fccd3d068d543cb.

This is not the right place to escape the \, we should only escape the spaces to
keep the arguments together that were provided as one group (with quotes on the
shell).

gst/gstparse.c

index 5256609..1077cd8 100644 (file)
@@ -181,7 +181,7 @@ _gst_parse_escape (const gchar * str)
   gstr = g_string_sized_new (strlen (str));
 
   while (*str) {
-    if (*str == ' ' || *str == '\\')
+    if (*str == ' ')
       g_string_append_c (gstr, '\\');
     g_string_append_c (gstr, *str);
     str++;