From a78a2f3dafb5ba5f8a96f5b518f25b1b77f6c2f4 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 1 Mar 2022 12:51:40 +0100 Subject: [PATCH] sip: media-manager: Initialize GStreamer if it's not already initialized --- plugins/sip/calls-sip-media-manager.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/sip/calls-sip-media-manager.c b/plugins/sip/calls-sip-media-manager.c index 76b17d7..7f0938d 100644 --- a/plugins/sip/calls-sip-media-manager.c +++ b/plugins/sip/calls-sip-media-manager.c @@ -156,7 +156,8 @@ calls_sip_media_manager_class_init (CallsSipMediaManagerClass *klass) static void calls_sip_media_manager_init (CallsSipMediaManager *self) { - gst_init (NULL, NULL); + if (!gst_is_initialized()) + gst_init (NULL, NULL); self->settings = calls_settings_new (); g_signal_connect_swapped (self->settings,