From: Sebastian Dröge Date: Wed, 8 Jul 2009 13:10:26 +0000 (+0200) Subject: registry: Use g_build_filename() instead of g_strjoin() with / X-Git-Tag: RELEASE-0.10.24~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f6bfb816ba0cf6da53c92b152d70fbd329edbc3;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/gst/gstregistry.c b/gst/gstregistry.c index 88062d2..e6f3d25 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' */