Commit cca823b4 authored by Vivia Nikolaidou's avatar Vivia Nikolaidou Committed by Sebastian Dröge

tools: gst-play: Use g_build_filename instead of g_strconcat

When running gst-play against a directory name, and suffix the path with a
directory separator (e.g. tab completion), gst-play was printing two directory
separators in a row. g_build_filename fixes this, and additionally allows for
both '/' and '\' as separators on Windows.
parent a3b24f02
......@@ -641,7 +641,7 @@ add_to_playlist (GPtrArray * playlist, const gchar * filename)
while ((entry = g_dir_read_name (dir))) {
gchar *path;
path = g_strconcat (filename, G_DIR_SEPARATOR_S, entry, NULL);
path = g_build_filename (filename, entry, NULL);
files = g_list_insert_sorted (files, path, compare);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment