mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
gst: Only include init/deinit of alloc tracing when enabled
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=675806
This commit is contained in:
parent
05580beb77
commit
1c82367a0e
1 changed files with 4 additions and 0 deletions
|
@ -635,7 +635,9 @@ init_post (GOptionContext * context, GOptionGroup * group, gpointer data,
|
||||||
llf = G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_ERROR | G_LOG_FLAG_FATAL;
|
llf = G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_ERROR | G_LOG_FLAG_FATAL;
|
||||||
g_log_set_handler (g_log_domain_gstreamer, llf, debug_log_handler, NULL);
|
g_log_set_handler (g_log_domain_gstreamer, llf, debug_log_handler, NULL);
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_TRACE
|
||||||
_priv_gst_alloc_trace_initialize ();
|
_priv_gst_alloc_trace_initialize ();
|
||||||
|
#endif
|
||||||
|
|
||||||
_priv_gst_mini_object_initialize ();
|
_priv_gst_mini_object_initialize ();
|
||||||
_priv_gst_quarks_initialize ();
|
_priv_gst_quarks_initialize ();
|
||||||
|
@ -1011,7 +1013,9 @@ gst_deinit (void)
|
||||||
|
|
||||||
_priv_gst_registry_cleanup ();
|
_priv_gst_registry_cleanup ();
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_TRACE
|
||||||
_priv_gst_alloc_trace_deinit ();
|
_priv_gst_alloc_trace_deinit ();
|
||||||
|
#endif
|
||||||
|
|
||||||
g_type_class_unref (g_type_class_peek (gst_object_get_type ()));
|
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_pad_get_type ()));
|
||||||
|
|
Loading…
Reference in a new issue