diff options
author | Vivia Nikolaidou <vivia@ahiru.eu> | 2015-08-18 13:50:17 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-08-18 15:19:03 +0300 |
commit | cca823b490e007a278335374163bb73604910c4f (patch) | |
tree | 74417b3c9330020a1b9bbed6dbdb1bebd80a6427 | |
parent | a3b24f0241bd55a005a072ba8ddcd53e0fdbf827 (diff) |
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.
-rw-r--r-- | tools/gst-play.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gst-play.c b/tools/gst-play.c index bbcde1107..15c9aa26d 100644 --- a/tools/gst-play.c +++ b/tools/gst-play.c @@ -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); } |