[calls] tests: sip: Initialize and deinitialize GStreamer explicitly
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] tests: sip: Initialize and deinitialize GStreamer explicitly
- Date: Wed, 2 Mar 2022 07:27:13 +0000 (UTC)
commit ab6442188021bfe835d293de7cc275097dd2f6f5
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Tue Mar 1 12:54:29 2022 +0100
tests: sip: Initialize and deinitialize GStreamer explicitly
tests/test-sip.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/tests/test-sip.c b/tests/test-sip.c
index 78fa2648..48dcc331 100644
--- a/tests/test-sip.c
+++ b/tests/test-sip.c
@@ -16,6 +16,8 @@
#include <gtk/gtk.h>
+#include <gst/gst.h>
+
#include <sofia-sip/su_uniqueid.h>
#include <libpeas/peas.h>
@@ -552,8 +554,13 @@ test_sip_media_manager (void)
int
main (int argc,
char *argv[])
+{
+ int ret;
+
gtk_test_init (&argc, &argv, NULL);
+ gst_init (NULL, NULL);
+
#ifdef PLUGIN_BUILDDIR
peas_engine_add_search_path (peas_engine_get_default (), PLUGIN_BUILDDIR, NULL);
#endif
@@ -577,5 +584,9 @@ main (int argc,
g_test_add_func ("/Calls/SIP/media_manager", test_sip_media_manager);
- return g_test_run();
+ ret = g_test_run();
+
+ gst_deinit ();
+
+ return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]