From a99755424f93280d2ae29607f56a8678c737a055 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 1 Mar 2022 12:47:46 +0100 Subject: [PATCH] media-manager: Don't run deinitialize GStreamer in finalize() This makes running tests harder as we cannot call gst_init() after gst_deinit() has been called. This is what the API reference has to say about it at https://gstreamer.freedesktop.org/documentation/gstreamer/gst.html?gi-language=c#gst_deinit It is normally not needed to call this function in a normal application as the resources will automatically be freed when the program terminates. This function is therefore mostly used by testsuites and other memory profiling tools. --- plugins/sip/calls-sip-media-manager.c | 1 - 1 file changed, 1 deletion(-) diff --git a/plugins/sip/calls-sip-media-manager.c b/plugins/sip/calls-sip-media-manager.c index 7429bdd..76b17d7 100644 --- a/plugins/sip/calls-sip-media-manager.c +++ b/plugins/sip/calls-sip-media-manager.c @@ -136,7 +136,6 @@ static void calls_sip_media_manager_finalize (GObject *object) { CallsSipMediaManager *self = CALLS_SIP_MEDIA_MANAGER (object); - gst_deinit (); g_list_free (self->preferred_codecs); g_object_unref (self->settings);