projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc0978b
)
registry: ignore .git directory when recursively scanning plugin paths for plugins
author
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 26 Mar 2009 14:44:04 +0000
(14:44 +0000)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Thu, 26 Mar 2009 14:52:00 +0000
(14:52 +0000)
Saves some cycles/pandas for those of us who run uninstalled setups.
gst/gstregistry.c
patch
|
blob
|
history
diff --git
a/gst/gstregistry.c
b/gst/gstregistry.c
index
bfb099d
..
fe5b447
100644
(file)
--- 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;
}