diff options
Diffstat (limited to 'meta/packages/gstreamer/gstreamer-0.10.14/gstreamer-omit-debug-directories.patch')
-rw-r--r-- | meta/packages/gstreamer/gstreamer-0.10.14/gstreamer-omit-debug-directories.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta/packages/gstreamer/gstreamer-0.10.14/gstreamer-omit-debug-directories.patch b/meta/packages/gstreamer/gstreamer-0.10.14/gstreamer-omit-debug-directories.patch new file mode 100644 index 0000000000..1abce2ec7d --- /dev/null +++ b/meta/packages/gstreamer/gstreamer-0.10.14/gstreamer-omit-debug-directories.patch | |||
@@ -0,0 +1,24 @@ | |||
1 | Index: gstreamer-cvs/gst/gstregistry.c | ||
2 | =================================================================== | ||
3 | RCS file: /cvs/gstreamer/gstreamer/gst/gstregistry.c,v | ||
4 | retrieving revision 1.75 | ||
5 | diff -u -r1.75 gstregistry.c | ||
6 | --- gstreamer-cvs/gst/gstregistry.c 31 Jul 2007 11:51:38 -0000 1.75 | ||
7 | +++ gstreamer-cvs/gst/gstregistry.c 8 Jan 2008 14:12:40 -0000 | ||
8 | @@ -813,6 +813,16 @@ | ||
9 | GST_LOG_OBJECT (registry, "examining file: %s", filename); | ||
10 | |||
11 | if (g_file_test (filename, G_FILE_TEST_IS_DIR)) { | ||
12 | + /* | ||
13 | + * skip .debug directories, these contain elf files that can crash | ||
14 | + * dlopen | ||
15 | + */ | ||
16 | + if (g_str_equal (dirent, ".debug")) { | ||
17 | + GST_LOG_OBJECT (registry, "found .debug directory, ignoring"); | ||
18 | + g_free (filename); | ||
19 | + continue; | ||
20 | + } | ||
21 | + | ||
22 | if (level > 0) { | ||
23 | GST_LOG_OBJECT (registry, "found directory, recursing"); | ||
24 | changed |= gst_registry_scan_path_level (registry, filename, level - 1); | ||