summaryrefslogtreecommitdiffstats
path: root/tests/icles
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-01-05 16:07:12 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-01-05 16:07:12 +0000
commit62621b5e412ff2e57f92fef84ec625ae8f4df5c6 (patch)
treee1f93d5f0fac59a09d285424ec365ce8687b8535 /tests/icles
parent296b2a6bea4af6d3224a6921e2875e3579f5e61b (diff)
tests/icles/videocrop-test.c: Call g_thread_init() right at the beginning. Remove superfluous gst_init() - we've alre...
Original commit message from CVS: * tests/icles/videocrop-test.c: (main): Call g_thread_init() right at the beginning. Remove superfluous gst_init() - we've already been inited via the GOption stuff.
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/videocrop-test.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/icles/videocrop-test.c b/tests/icles/videocrop-test.c
index 775446be..38eaa9bc 100644
--- a/tests/icles/videocrop-test.c
+++ b/tests/icles/videocrop-test.c
@@ -153,6 +153,9 @@ main (int argc, char **argv)
GstCaps *filter_caps = NULL;
GList *caps_list, *l;
+ if (!g_thread_supported ())
+ g_thread_init (NULL);
+
/* command line option parsing */
ctx = g_option_context_new ("");
g_option_context_add_group (ctx, gst_init_get_option_group ());
@@ -163,8 +166,6 @@ main (int argc, char **argv)
return -1;
}
- gst_init (&argc, &argv);
-
GST_DEBUG_CATEGORY_INIT (videocrop_test_debug, "videocroptest", 0, "vctest");
loop = g_main_loop_new (NULL, FALSE);