1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

tests: sip: Initialize and deinitialize GStreamer explicitly

This commit is contained in:
Evangelos Ribeiro Tzaras 2022-03-01 12:54:29 +01:00
parent c3c099294c
commit ab64421880

View file

@ -16,6 +16,8 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <gst/gst.h>
#include <sofia-sip/su_uniqueid.h> #include <sofia-sip/su_uniqueid.h>
#include <libpeas/peas.h> #include <libpeas/peas.h>
@ -552,8 +554,13 @@ test_sip_media_manager (void)
int int
main (int argc, main (int argc,
char *argv[]) char *argv[])
{
int ret;
gtk_test_init (&argc, &argv, NULL); gtk_test_init (&argc, &argv, NULL);
gst_init (NULL, NULL);
#ifdef PLUGIN_BUILDDIR #ifdef PLUGIN_BUILDDIR
peas_engine_add_search_path (peas_engine_get_default (), PLUGIN_BUILDDIR, NULL); peas_engine_add_search_path (peas_engine_get_default (), PLUGIN_BUILDDIR, NULL);
#endif #endif
@ -577,5 +584,9 @@ main (int argc,
g_test_add_func ("/Calls/SIP/media_manager", test_sip_media_manager); g_test_add_func ("/Calls/SIP/media_manager", test_sip_media_manager);
return g_test_run(); ret = g_test_run();
gst_deinit ();
return ret;
} }