mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
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.
This commit is contained in:
parent
6b2986194b
commit
5f6bfb816b
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
||||||
while ((dirent = g_dir_read_name (dir))) {
|
while ((dirent = g_dir_read_name (dir))) {
|
||||||
struct stat file_status;
|
struct stat file_status;
|
||||||
|
|
||||||
filename = g_strjoin ("/", path, dirent, NULL);
|
filename = g_build_filename (path, dirent, NULL);
|
||||||
if (g_stat (filename, &file_status) < 0) {
|
if (g_stat (filename, &file_status) < 0) {
|
||||||
/* Plugin will be removed from cache after the scan completes if it
|
/* Plugin will be removed from cache after the scan completes if it
|
||||||
* is still marked 'cached' */
|
* is still marked 'cached' */
|
||||||
|
|
Loading…
Reference in a new issue