{NULL}
};
+/* Since GLib 2.31.0 threading is always enabled and g_thread_init()
+ * is not needed any longer and deprecated */
+#if !GLIB_CHECK_VERSION (2, 31, 0)
/* Since GLib 2.23.2 calling g_thread_init() 'late' is allowed and is
* automatically done as part of g_type_init() */
if (glib_check_version (2, 23, 3)) {
} else {
/* GLib >= 2.23.2 */
}
+#endif
group = g_option_group_new ("gst", _("GStreamer Options"),
_("Show GStreamer Options"), NULL, NULL);
#endif
gboolean res;
+#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_get_initialized ())
g_thread_init (NULL);
+#endif
if (gst_initialized) {
GST_DEBUG ("already initialized gst");
g_type_init ();
+#if !GLIB_CHECK_VERSION (2, 31, 0)
/* we need threading to be enabled right here */
g_assert (g_thread_get_initialized ());
+#endif
#ifndef GST_DISABLE_GST_DEBUG
_priv_gst_debug_init ();
g_type_class_ref (gst_task_get_type ());
g_type_class_ref (gst_clock_get_type ());
- g_type_class_ref (gst_index_factory_get_type ());
gst_uri_handler_get_type ();
g_type_class_ref (gst_object_flags_get_type ());
g_type_class_ref (gst_seek_flags_get_type ());
g_type_class_ref (gst_qos_type_get_type ());
g_type_class_ref (gst_format_get_type ());
- g_type_class_ref (gst_index_certainty_get_type ());
- g_type_class_ref (gst_index_entry_type_get_type ());
- g_type_class_ref (gst_index_lookup_method_get_type ());
- g_type_class_ref (gst_assoc_flags_get_type ());
- g_type_class_ref (gst_index_resolver_method_get_type ());
- g_type_class_ref (gst_index_flags_get_type ());
g_type_class_ref (gst_debug_level_get_type ());
g_type_class_ref (gst_debug_color_flags_get_type ());
g_type_class_ref (gst_iterator_result_get_type ());
g_type_class_ref (gst_pad_link_return_get_type ());
g_type_class_ref (gst_pad_link_check_get_type ());
g_type_class_ref (gst_flow_return_get_type ());
- g_type_class_ref (gst_pad_activate_mode_get_type ());
+ g_type_class_ref (gst_pad_mode_get_type ());
g_type_class_ref (gst_pad_direction_get_type ());
g_type_class_ref (gst_pad_flags_get_type ());
g_type_class_ref (gst_pad_presence_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 ());
+ g_type_class_ref (gst_uri_error_get_type ());
g_type_class_ref (gst_uri_type_get_type ());
g_type_class_ref (gst_parse_error_get_type ());
g_type_class_ref (gst_parse_flags_get_type ());
g_type_class_ref (gst_pad_probe_type_get_type ());
g_type_class_ref (gst_pad_probe_return_get_type ());
g_type_class_ref (gst_segment_flags_get_type ());
+ g_type_class_ref (gst_scheduling_flags_get_type ());
+ g_type_class_ref (gst_meta_flags_get_type ());
+
+ g_type_class_ref (gst_control_binding_get_type ());
+ g_type_class_ref (gst_control_source_get_type ());
_priv_gst_event_initialize ();
_priv_gst_buffer_initialize ();
_priv_gst_message_initialize ();
_priv_gst_buffer_list_initialize ();
+ _priv_gst_sample_initialize ();
_priv_gst_value_initialize ();
g_type_class_ref (gst_param_spec_fraction_get_type ());
_priv_gst_tag_initialize ();
if (!init_post (NULL, NULL, NULL, NULL))
exit (1);
- list2 = gst_registry_plugin_filter (gst_registry_get_default (),
+ list2 = gst_registry_plugin_filter (gst_registry_get (),
select_all, FALSE, NULL);
/* FIXME this is gross. why don't debug have categories PluginFeatures? */
g_type_class_unref (g_type_class_peek (gst_bin_get_type ()));
g_type_class_unref (g_type_class_peek (gst_bus_get_type ()));
g_type_class_unref (g_type_class_peek (gst_task_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_index_factory_get_type ()));
g_type_class_unref (g_type_class_peek (gst_object_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_bin_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_buffer_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_seek_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_qos_type_get_type ()));
g_type_class_unref (g_type_class_peek (gst_format_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_index_certainty_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_index_entry_type_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_index_lookup_method_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_assoc_flags_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_index_resolver_method_get_type
- ()));
- g_type_class_unref (g_type_class_peek (gst_index_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_debug_level_get_type ()));
g_type_class_unref (g_type_class_peek (gst_debug_color_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_iterator_result_get_type ()));
g_type_class_unref (g_type_class_peek (gst_iterator_item_get_type ()));
g_type_class_unref (g_type_class_peek (gst_message_type_get_type ()));
+ g_type_class_unref (g_type_class_peek (gst_meta_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_mini_object_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_link_return_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_link_check_get_type ()));
g_type_class_unref (g_type_class_peek (gst_flow_return_get_type ()));
- g_type_class_unref (g_type_class_peek (gst_pad_activate_mode_get_type ()));
+ g_type_class_unref (g_type_class_peek (gst_pad_mode_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_direction_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_flags_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_presence_get_type ()));
g_type_class_unref (g_type_class_peek (gst_type_find_probability_get_type
()));
g_type_class_unref (g_type_class_peek (gst_uri_type_get_type ()));
+ g_type_class_unref (g_type_class_peek (gst_uri_error_get_type ()));
g_type_class_unref (g_type_class_peek (gst_parse_error_get_type ()));
g_type_class_unref (g_type_class_peek (gst_param_spec_fraction_get_type ()));
g_type_class_unref (g_type_class_peek (gst_progress_type_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_probe_type_get_type ()));
g_type_class_unref (g_type_class_peek (gst_pad_probe_return_get_type ()));
g_type_class_unref (g_type_class_peek (gst_segment_flags_get_type ()));
+ g_type_class_unref (g_type_class_peek (gst_scheduling_flags_get_type ()));
+
+ g_type_class_unref (g_type_class_peek (gst_control_binding_get_type ()));
+ g_type_class_unref (g_type_class_peek (gst_control_source_get_type ()));
gst_deinitialized = TRUE;
GST_INFO ("deinitialized GStreamer");