Initialise some more types in gst_init(), esp. the new enum types

Possibly fixes GObject class creation/unref race conditions when
creating the last-message string in fakesink for events with
structures that have fields with these enum types.
This commit is contained in:
Tim-Philipp Müller 2009-05-12 20:58:32 +01:00
parent 7f0b2f3d3b
commit fb007e5d50

View file

@ -1011,6 +1011,7 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
g_type_class_ref (gst_clock_return_get_type ());
g_type_class_ref (gst_clock_entry_type_get_type ());
g_type_class_ref (gst_clock_flags_get_type ());
g_type_class_ref (gst_clock_type_get_type ());
g_type_class_ref (gst_debug_graph_details_get_type ());
g_type_class_ref (gst_state_get_type ());
g_type_class_ref (gst_state_change_return_get_type ());
@ -1051,8 +1052,11 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
g_type_class_ref (gst_rank_get_type ());
g_type_class_ref (gst_query_type_get_type ());
g_type_class_ref (gst_buffering_mode_get_type ());
g_type_class_ref (gst_stream_status_type_get_type ());
g_type_class_ref (gst_structure_change_type_get_type ());
g_type_class_ref (gst_tag_merge_mode_get_type ());
g_type_class_ref (gst_tag_flag_get_type ());
g_type_class_ref (gst_task_pool_get_type ());
g_type_class_ref (gst_task_state_get_type ());
g_type_class_ref (gst_alloc_trace_flags_get_type ());
g_type_class_ref (gst_type_find_probability_get_type ());