Revert "parse: escape \ with a \ as well, so that we don't lose the \ when unescaping"

This reverts commit dd9fedb41f.

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).
This commit is contained in:
Wim Taymans 2012-07-17 09:44:10 +02:00
parent c3bb59de9c
commit 03fae7e32e

View 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++;