mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
registry: ignore .git directory when recursively scanning plugin paths for plugins
Saves some cycles/pandas for those of us who run uninstalled setups.
This commit is contained in:
parent
cc0978bd85
commit
ea554b1d62
1 changed files with 2 additions and 2 deletions
|
@ -823,8 +823,8 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
|
||||||
if (file_status.st_mode & S_IFDIR) {
|
if (file_status.st_mode & S_IFDIR) {
|
||||||
/* skip the .debug directory, these contain elf files that are not
|
/* skip the .debug directory, these contain elf files that are not
|
||||||
* useful or worse, can crash dlopen () */
|
* useful or worse, can crash dlopen () */
|
||||||
if (g_str_equal (dirent, ".debug")) {
|
if (g_str_equal (dirent, ".debug") || g_str_equal (dirent, ".git")) {
|
||||||
GST_LOG_OBJECT (registry, "found .debug directory, ignoring");
|
GST_LOG_OBJECT (registry, "ignoring .debug or .git directory");
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue