From dd9fedb41f1ada8e1f8bd5346fccd3d068d543cb Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Wed, 27 Jun 2012 19:59:29 +0100 Subject: [PATCH] parse: escape \ with a \ as well, so that we don't lose the \ when unescaping If we have a file called Foo\Bar.ogg, there is no way to pass that filename properly to filesrc in gst_parse_launch(), since gst_parse_unescape() will just unescape \x to x. Not cherry-picking this into 0.10 since there are apparently apps that work around this problem and which would break if we fixed it there too. https://bugzilla.gnome.org/show_bug.cgi?id=673319 --- gst/gstparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstparse.c b/gst/gstparse.c index 3e6714dd32..9f3208b256 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -187,7 +187,7 @@ _gst_parse_escape (const gchar * str) gstr = g_string_sized_new (strlen (str)); while (*str) { - if (*str == ' ') + if (*str == ' ' || *str == '\\') g_string_append_c (gstr, '\\'); g_string_append_c (gstr, *str); str++;