diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-04-02 10:43:16 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-04-02 10:44:23 +0200 |
commit | 3933296685e56123e6ca10f975c7ac2f8daea2cc (patch) | |
tree | 9c0b4283cb0ae8b939142d5265564e54d448ddac | |
parent | 37fe4bf3b968f46a0a4adc33ff26b7e0db089a8d (diff) |
gstcheck: Call gst_check_init() before creating the suite
This allows using the GStreamer or GObject API in the suite
creation function.
-rw-r--r-- | libs/gst/check/gstcheck.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h index 8fa6eb8046..ec1313b739 100644 --- a/libs/gst/check/gstcheck.h +++ b/libs/gst/check/gstcheck.h @@ -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__); \ } |