gst: Add enum/flags (de)registration in gst_(de)init
authorEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 6 Jun 2011 09:21:23 +0000 (11:21 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Mon, 6 Jun 2011 09:21:23 +0000 (11:21 +0200)
gst/gst.c

index dccf4d2..93f756e 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -755,6 +755,8 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
   g_type_class_ref (gst_memory_flags_get_type ());
   g_type_class_ref (gst_map_flags_get_type ());
   g_type_class_ref (gst_caps_intersect_mode_get_type ());
+  g_type_class_ref (gst_probe_type_get_type ());
+  g_type_class_ref (gst_probe_return_get_type ());
 
   _gst_event_initialize ();
   _gst_buffer_initialize ();
@@ -1122,6 +1124,8 @@ gst_deinit (void)
   g_type_class_unref (g_type_class_peek (gst_memory_flags_get_type ()));
   g_type_class_unref (g_type_class_peek (gst_map_flags_get_type ()));
   g_type_class_unref (g_type_class_peek (gst_caps_intersect_mode_get_type ()));
+  g_type_class_unref (g_type_class_peek (gst_probe_type_get_type ()));
+  g_type_class_unref (g_type_class_peek (gst_probe_return_get_type ()));
 
   gst_deinitialized = TRUE;
   GST_INFO ("deinitialized GStreamer");