From 3933296685e56123e6ca10f975c7ac2f8daea2cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 2 Apr 2009 10:43:16 +0200 Subject: [PATCH] gstcheck: Call gst_check_init() before creating the suite This allows using the GStreamer or GObject API in the suite creation function. --- libs/gst/check/gstcheck.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h index 8fa6eb8..ec1313b 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__); \ } -- 2.7.4