summaryrefslogtreecommitdiff
path: root/gst/gstregistry.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-26 14:44:04 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-03-26 14:52:00 +0000
commitea554b1d62e80a3be0ecd547b154d4a4937a68ee (patch)
tree8e7b41eba156ef3275ac069b1fc46d98b8d68b97 /gst/gstregistry.c
parentcc0978bd85204de787e45a53d4d361dd85d7eea9 (diff)
registry: ignore .git directory when recursively scanning plugin paths for plugins
Saves some cycles/pandas for those of us who run uninstalled setups.
Diffstat (limited to 'gst/gstregistry.c')
-rw-r--r--gst/gstregistry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/gstregistry.c b/gst/gstregistry.c
index bfb099d3ad..fe5b44724f 100644
--- a/gst/gstregistry.c
+++ b/gst/gstregistry.c
@@ -823,8 +823,8 @@ gst_registry_scan_path_level (GstRegistry * registry, const gchar * path,
if (file_status.st_mode & S_IFDIR) {
/* skip the .debug directory, these contain elf files that are not
* useful or worse, can crash dlopen () */
- if (g_str_equal (dirent, ".debug")) {
- GST_LOG_OBJECT (registry, "found .debug directory, ignoring");
+ if (g_str_equal (dirent, ".debug") || g_str_equal (dirent, ".git")) {
+ GST_LOG_OBJECT (registry, "ignoring .debug or .git directory");
g_free (filename);
continue;
}