mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 07:46:03 +00:00
tests: sip: Initialize and deinitialize GStreamer explicitly
This commit is contained in:
parent
c3c099294c
commit
ab64421880
1 changed files with 12 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue