summaryrefslogtreecommitdiffstats
path: root/meta/packages/gstreamer/gstreamer-0.10.17/gstreamer-omit-debug-directories.patch
blob: 9f5d850f5044ecd97fa21ef9f8de068be37c43c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: gstreamer-0.10.4/gst/gstregistry.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/gst/gstregistry.c,v
retrieving revision 1.75
diff -u -r1.75 gstregistry.c
--- gstreamer-0.10.4/gst/gstregistry.c	31 Jul 2007 11:51:38 -0000	1.75
+++ gstreamer-0.10.4/gst/gstregistry.c	8 Jan 2008 14:12:40 -0000
@@ -813,6 +813,16 @@
     GST_LOG_OBJECT (registry, "examining file: %s", filename);
 
     if (g_file_test (filename, G_FILE_TEST_IS_DIR)) {
+      /* 
+       * skip .debug directories, these contain elf files that can crash
+       * dlopen 
+       */
+      if (g_str_equal (dirent, ".debug")) {
+        GST_LOG_OBJECT (registry, "found .debug directory, ignoring");
+        g_free (filename);
+        continue;
+      }
+
       if (level > 0) {
         GST_LOG_OBJECT (registry, "found directory, recursing");
         changed |= gst_registry_scan_path_level (registry, filename, level - 1);