From a79503a4334d53d4a835064a20a42da8f073d2d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 29 Jul 2017 10:28:03 +0100 Subject: [PATCH] info: fix build with gst debugging disabled --- gst/gstinfo.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 781426e..fc683f3 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -2807,6 +2807,7 @@ gst_debug_print_stack_trace (void) g_free (trace); } +#ifndef GST_DISABLE_GST_DEBUG typedef struct { guint max_size_per_thread; @@ -3071,3 +3072,26 @@ gst_debug_remove_ring_buffer_logger (void) { gst_debug_remove_log_function (gst_ring_buffer_logger_log); } + +#else /* GST_DISABLE_GST_DEBUG */ +#ifndef GST_REMOVE_DISABLED + +gchar ** +gst_debug_ring_buffer_logger_get_logs (void) +{ + return NULL; +} + +void +gst_debug_add_ring_buffer_logger (guint max_size_per_thread, + guint thread_timeout) +{ +} + +void +gst_debug_remove_ring_buffer_logger (void) +{ +} + +#endif /* GST_REMOVE_DISABLED */ +#endif /* GST_DISABLE_GST_DEBUG */ -- 2.7.4