mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
tracers: disable the log tracer if debug logging is disabled
This commit is contained in:
parent
34cf8f3252
commit
03821d18a0
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue