mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
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.
This commit is contained in:
parent
296b2a6bea
commit
62621b5e41
2 changed files with 4 additions and 3 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit ee0bb43e2b66781d04078e2210404da48f6c68f0
|
Subproject commit 64f924f6f2ff6275b06facb4c2adbc7c05f70641
|
|
@ -153,6 +153,9 @@ main (int argc, char **argv)
|
||||||
GstCaps *filter_caps = NULL;
|
GstCaps *filter_caps = NULL;
|
||||||
GList *caps_list, *l;
|
GList *caps_list, *l;
|
||||||
|
|
||||||
|
if (!g_thread_supported ())
|
||||||
|
g_thread_init (NULL);
|
||||||
|
|
||||||
/* command line option parsing */
|
/* command line option parsing */
|
||||||
ctx = g_option_context_new ("");
|
ctx = g_option_context_new ("");
|
||||||
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
g_option_context_add_group (ctx, gst_init_get_option_group ());
|
||||||
|
@ -163,8 +166,6 @@ main (int argc, char **argv)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_init (&argc, &argv);
|
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT (videocrop_test_debug, "videocroptest", 0, "vctest");
|
GST_DEBUG_CATEGORY_INIT (videocrop_test_debug, "videocroptest", 0, "vctest");
|
||||||
|
|
||||||
loop = g_main_loop_new (NULL, FALSE);
|
loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
Loading…
Reference in a new issue