gstcheck: Call gst_check_init() before creating the suite

This allows using the GStreamer or GObject API in the suite
creation function.
This commit is contained in:
Sebastian Dröge 2009-04-02 10:43:16 +02:00
parent 37fe4bf3b9
commit 3933296685

View file

@ -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__); \
}