From: Stefan Sauer Date: Tue, 6 Oct 2015 16:46:24 +0000 (+0200) Subject: tracers: disable the log tracer if debug logging is disabled X-Git-Tag: 1.10.4~688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03821d18a0a3b6b10bfd619ec96c298c01409c8d;p=platform%2Fupstream%2Fgstreamer.git tracers: disable the log tracer if debug logging is disabled --- diff --git a/plugins/tracers/Makefile.am b/plugins/tracers/Makefile.am index ef7ba2b..0a30538 100644 --- a/plugins/tracers/Makefile.am +++ b/plugins/tracers/Makefile.am @@ -7,10 +7,16 @@ else RUSAGE_SOURCES = endif +if GST_DISABLE_GST_DEBUG +LOG_SOURCES = +else +LOG_SOURCES = gstlog.c +endif + libgstcoretracers_la_DEPENDENCIES = $(top_builddir)/gst/libgstreamer-@GST_API_VERSION@.la libgstcoretracers_la_SOURCES = \ gstlatency.c \ - gstlog.c \ + $(LOG_SOURCES) \ $(RUSAGE_SOURCES) \ gststats.c \ gsttracers.c diff --git a/plugins/tracers/gsttracers.c b/plugins/tracers/gsttracers.c index aa452ba..010c185 100644 --- a/plugins/tracers/gsttracers.c +++ b/plugins/tracers/gsttracers.c @@ -34,8 +34,10 @@ plugin_init (GstPlugin * plugin) { if (!gst_tracer_register (plugin, "latency", gst_latency_tracer_get_type ())) return FALSE; +#ifndef GST_DISABLE_GST_DEBUG if (!gst_tracer_register (plugin, "log", gst_log_tracer_get_type ())) return FALSE; +#endif #ifdef HAVE_GETRUSAGE if (!gst_tracer_register (plugin, "rusage", gst_rusage_tracer_get_type ())) return FALSE;