From f29f9d90963dee635743d17dc70a3109105808d7 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 20 Nov 2010 15:57:29 +0100 Subject: [PATCH] Work around for a core dump on exit on FreeBSD 9.0 amd64 Prevents vlc from triggering the following assertion: ASSERT failure in QCoreApplication::sendEvent: "Cannot send events to objects owned by a different thread. Current thread 801656a10. Receiver '' (of type 'MainInterface') was created in thread 81a46c040", file kernel/qcoreapplication.cpp, line 348 Abort trap: 6 (core dumped) --- src/modules/modules.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/modules/modules.c b/src/modules/modules.c index 57afd22..f780d09 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -619,6 +619,12 @@ found_shortcut: */ void module_unneed( vlc_object_t * p_this, module_t * p_module ) { + if( !strcmp( p_module->psz_object_name, "qt4" ) ) + { + msg_Dbg( p_this, "skipped removal of module \"%s\"", p_module->psz_object_name ); + return; + } + /* Use the close method */ if( p_module->pf_deactivate ) { -- 1.7.3.2