[vlc-commits] Do not load KDE Qt plugins until KDE gets a clue

Rémi Denis-Courmont git at videolan.org
Sun Jan 30 13:40:24 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan 30 14:40:02 2011 +0200| [96c7f9c26940828357655380470a930cbb09497e] | committer: Rémi Denis-Courmont

Do not load KDE Qt plugins until KDE gets a clue

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=96c7f9c26940828357655380470a930cbb09497e
---

 bin/override.c |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/bin/override.c b/bin/override.c
index 2c94afe..0828f00 100644
--- a/bin/override.c
+++ b/bin/override.c
@@ -264,8 +264,26 @@ error:
 #endif
 
 
-/*** Locales ***
- * setlocale() is not thread-safe and has a tendency to crash other threads as
+/*** Dynaminc linker ***/
+
+void *dlopen (const char *path, int flags)
+{
+    if (override && path != NULL)
+    {
+        /* Work around the KDE SIGCHLD and KDE D-Bus exit handler bugs */
+        if (strstr (path, "libkde") != NULL)
+        {
+            LOG("Blocked", "\"%s\", %d", path, flags);
+            return NULL;
+        }
+    }
+    return CALL(dlopen, path, flags);
+}
+
+
+/*** Locales ***/
+
+/* setlocale() is not thread-safe and has a tendency to crash other threads as
  * quite many libc and libintl calls depend on the locale.
  * Use uselocale() instead for thread-safety.
  */



More information about the vlc-commits mailing list