diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-22 12:20:45 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-06-22 12:20:45 +0100 |
commit | 68c5a7f25cf92c896a6c6a3e431ab4917a14915d (patch) | |
tree | f491a6d808ba128233a0d3f78d9baf29ab7b7fee /indra/media_plugins/webkit/linux_volume_catcher.cpp | |
parent | 81597463beb01fccd3e4bf9d7dea6bcdcd095115 (diff) |
EXT-7889 FIXED Linux fails to load splash screen and side panel home tab.
Diffstat (limited to 'indra/media_plugins/webkit/linux_volume_catcher.cpp')
-rw-r--r-- | indra/media_plugins/webkit/linux_volume_catcher.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/media_plugins/webkit/linux_volume_catcher.cpp b/indra/media_plugins/webkit/linux_volume_catcher.cpp index 2e7fda865e..5eaef0e1c3 100644 --- a/indra/media_plugins/webkit/linux_volume_catcher.cpp +++ b/indra/media_plugins/webkit/linux_volume_catcher.cpp @@ -47,6 +47,7 @@ extern "C" { #include <glib.h> +#include <glib-object.h> #include <pulse/introspect.h> #include <pulse/context.h> @@ -220,6 +221,10 @@ void VolumeCatcherImpl::init() mGotSyms = loadsyms("libpulse-mainloop-glib.so.0"); if (!mGotSyms) return; + // better make double-sure glib itself is initialized properly. + if (!g_thread_supported ()) g_thread_init (NULL); + g_type_init(); + mMainloop = llpa_glib_mainloop_new(g_main_context_default()); if (mMainloop) { |