Commit 39332966 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

gstcheck: Call gst_check_init() before creating the suite

This allows using the GStreamer or GObject API in the suite
creation function.
parent 37fe4bf3
......@@ -415,8 +415,9 @@ fail_unless (gst_element_set_state (element, \
#define GST_CHECK_MAIN(name) \
int main (int argc, char **argv) \
{ \
Suite *s = name ## _suite (); \
Suite *s; \
gst_check_init (&argc, &argv); \
s = name ## _suite (); \
return gst_check_run_suite (s, # name, __FILE__); \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment