22 lines
855 B
Diff
22 lines
855 B
Diff
|
#! /bin/sh /usr/share/dpatch/dpatch-run
|
||
|
## 10_gthread_init.dpatch by <bdonlan@gmail.com>
|
||
|
##
|
||
|
## All lines beginning with `## DP:' are a description of the patch.
|
||
|
## DP: Initialize the GLib threading system before we make any other calls
|
||
|
## DP: to glib.
|
||
|
|
||
|
@DPATCH@
|
||
|
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);
|