summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6b29861)
raw | patch | inline | side by side (parent: 6b29861)
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Wed, 8 Jul 2009 13:10:26 +0000 (15:10 +0200) | ||
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Wed, 8 Jul 2009 13:12:07 +0000 (15:12 +0200) |
This makes sure that the generated filenames use the platform
specific directory separator instead of /.
Fixes bug #587973.
specific directory separator instead of /.
Fixes bug #587973.
gst/gstregistry.c | patch | blob | history |
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index 88062d250b8fb05e6c644f69f4fcb2507219a61b..e6f3d25af239cec7ce94cc2562d9358b31091412 100644 (file)
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
while ((dirent = g_dir_read_name (dir))) {
struct stat file_status;
- filename = g_strjoin ("/", path, dirent, NULL);
+ filename = g_build_filename (path, dirent, NULL);
if (g_stat (filename, &file_status) < 0) {
/* Plugin will be removed from cache after the scan completes if it
* is still marked 'cached' */