mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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
This commit is contained in:
parent
e4301fe50f
commit
dd9fedb41f
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue