summaryrefslogtreecommitdiff
path: root/gst/gst.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/gst.c')
-rw-r--r--gst/gst.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/gst.c b/gst/gst.c
index 320ef6b34..faaeabd5f 100644
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -682,6 +682,8 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
_priv_gst_caps_initialize ();
_priv_gst_meta_initialize ();
+ g_mutex_init (&_gst_trace_mutex);
+
g_type_class_ref (gst_object_get_type ());
g_type_class_ref (gst_pad_get_type ());
g_type_class_ref (gst_element_factory_get_type ());
@@ -1052,6 +1054,8 @@ gst_deinit (void)
_priv_gst_registry_cleanup ();
+ g_mutex_clear (&_gst_trace_mutex);
+
g_type_class_unref (g_type_class_peek (gst_object_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_get_type ()));
g_type_class_unref (g_type_class_peek (gst_element_factory_get_type ()));