gst: ref/unref new enum type in gst_init/deinit()

This commit is contained in:
Tim-Philipp Müller 2015-03-18 16:27:36 +00:00
parent 5d96658874
commit 1734915850

View file

@ -669,6 +669,7 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
g_type_class_ref (gst_lock_flags_get_type ());
g_type_class_ref (gst_allocator_flags_get_type ());
g_type_class_ref (gst_stream_flags_get_type ());
g_type_class_ref (gst_segment_result_get_type ());
_priv_gst_event_initialize ();
_priv_gst_buffer_initialize ();
@ -1067,6 +1068,7 @@ gst_deinit (void)
g_type_class_unref (g_type_class_peek (gst_allocator_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_stream_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_debug_color_mode_get_type ()));
g_type_class_unref (g_type_class_peek (gst_segment_result_get_type ()));
gst_deinitialized = TRUE;
GST_INFO ("deinitialized GStreamer");