mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
uri: fix behaviour for merging uris ending in .. without following /
https://bugzilla.gnome.org/show_bug.cgi?id=757065
This commit is contained in:
parent
63fa09fc4d
commit
07902f6ab4
1 changed files with 6 additions and 1 deletions
|
@ -1219,7 +1219,12 @@ _remove_dot_segments (GList * path)
|
|||
out = g_list_delete_link (out, prev);
|
||||
}
|
||||
g_free (elem->data);
|
||||
out = g_list_delete_link (out, elem);
|
||||
if (next != NULL) {
|
||||
out = g_list_delete_link (out, elem);
|
||||
} else {
|
||||
/* path ends in '/..' We need to keep the last '/' */
|
||||
elem->data = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue