# HG changeset patch # User Sean Egan # Date 1178648522 0 # Node ID 46985e1ae76a563fb068d6ad490f0f909bbeed70 # Parent 0cd50792a5f71d863cf5e5df584e0991b52c6ec4 Try this instead. This calls g_thread_init from main(), before any other glib function is called. diff -r 0cd50792a5f7 -r 46985e1ae76a pidgin/gtkmain.c --- a/pidgin/gtkmain.c Tue May 08 17:59:56 2007 +0000 +++ b/pidgin/gtkmain.c Tue May 08 18:22:02 2007 +0000 @@ -474,6 +474,9 @@ debug_enabled = FALSE; #endif + /* This is the first Glib function call. Make sure to initialize GThread bfeore then */ + g_thread_init(NULL); + #ifdef PURPLE_FATAL_ASSERTS /* Make g_return_... functions fatal. */ g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); diff -r 0cd50792a5f7 -r 46985e1ae76a pidgin/gtksound.c --- a/pidgin/gtksound.c Tue May 08 17:59:56 2007 +0000 +++ b/pidgin/gtksound.c Tue May 08 18:22:02 2007 +0000 @@ -306,8 +306,6 @@ #ifdef USE_GSTREAMER purple_debug_info("sound", "Initializing sound output drivers.\n"); - if (!g_thread_supported()) - g_thread_init(NULL); if ((gst_init_failed = !gst_init_check(NULL, NULL, &error))) { purple_notify_error(NULL, _("GStreamer Failure"), _("GStreamer failed to initialize."),