From 03fae7e32e3b69f23c3c43341e1ed5bd64043967 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 17 Jul 2012 09:44:10 +0200 Subject: [PATCH] Revert "parse: escape \ with a \ as well, so that we don't lose the \ when unescaping" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstparse.c b/gst/gstparse.c index 5256609..1077cd8 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -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++; -- 2.7.4