diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-07-08 15:10:26 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-07-08 15:12:07 +0200 |
commit | 5f6bfb816ba0cf6da53c92b152d70fbd329edbc3 (patch) | |
tree | 7130a045e3ce9c79bf682cb0d516a9dbd8207568 | |
parent | 6b2986194bc67b6a7f3a99a27582c9eb0edaef8e (diff) |
registry: Use g_build_filename() instead of g_strjoin() with /
This makes sure that the generated filenames use the platform
specific directory separator instead of /.
Fixes bug #587973.
-rw-r--r-- | gst/gstregistry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 88062d250..e6f3d25af 100644 --- a/gst/gstregistry.c +++ b/gst/gstregistry.c @@ -812,7 +812,7 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path, 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' */ |