mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
37fe4bf3b9
commit
3933296685
1 changed files with 2 additions and 1 deletions
|
@ -415,8 +415,9 @@ fail_unless (gst_element_set_state (element, \
|
||||||
#define GST_CHECK_MAIN(name) \
|
#define GST_CHECK_MAIN(name) \
|
||||||
int main (int argc, char **argv) \
|
int main (int argc, char **argv) \
|
||||||
{ \
|
{ \
|
||||||
Suite *s = name ## _suite (); \
|
Suite *s; \
|
||||||
gst_check_init (&argc, &argv); \
|
gst_check_init (&argc, &argv); \
|
||||||
|
s = name ## _suite (); \
|
||||||
return gst_check_run_suite (s, # name, __FILE__); \
|
return gst_check_run_suite (s, # name, __FILE__); \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue