summaryrefslogtreecommitdiff
blob: 028be99dc502a5ee500541a7f2d3442be18e7603 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -ur moodbar-0.1.2.orig/analyzer/main.c moodbar-0.1.2/analyzer/main.c
--- moodbar-0.1.2.orig/analyzer/main.c	2006-10-12 08:43:30.000000000 +0300
+++ moodbar-0.1.2/analyzer/main.c	2009-05-09 14:14:08.000000000 +0300
@@ -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);