Blob Blame History Raw
diff -urNad moodbar-0.1.2~/analyzer/main.c moodbar-0.1.2/analyzer/main.c
--- moodbar-0.1.2~/analyzer/main.c	2006-10-12 01:43:30.000000000 -0400
+++ moodbar-0.1.2/analyzer/main.c	2007-04-01 13:20:33.000000000 -0400
@@ -262,6 +262,9 @@
   GOptionContext *ctx;
   GError *err = NULL;
 
+  // must be called before any other glib function is called
+  if (!g_thread_supported ()) g_thread_init(NULL);
+
   ctx = g_option_context_new ("[INFILE] - Run moodbar analyzer");
   g_option_context_add_group (ctx, gst_init_get_option_group ());
   g_option_context_add_main_entries (ctx, entries, NULL);