summaryrefslogtreecommitdiff
path: root/gst/gsttracerrecord.c
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2016-01-19 11:10:30 +0100
committerEdward Hervey <bilboed@bilboed.com>2016-01-19 11:12:21 +0100
commit128760f246d891bc2a3c5f208e09fb03a2e80fd1 (patch)
tree7d8120e06a841b18de5df4929dc00cb14b871359 /gst/gsttracerrecord.c
parenteb4c5498b5d049aa67d7d397aaf7c55ce1f53d97 (diff)
tracerrecord: Disable logging if GST_DISABLE_GST_DEBUG
Make the gst_tracer_record_log() a no-op if the gst-debug subsystem is disabled.
Diffstat (limited to 'gst/gsttracerrecord.c')
-rw-r--r--gst/gsttracerrecord.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/gsttracerrecord.c b/gst/gsttracerrecord.c
index 73ecc7dfaf..d1e99391cb 100644
--- a/gst/gsttracerrecord.c
+++ b/gst/gsttracerrecord.c
@@ -227,6 +227,7 @@ gst_tracer_record_new (GstStructure * spec)
return g_object_new (GST_TYPE_TRACER_RECORD, "spec", spec, NULL);
}
+#ifndef GST_DISABLE_GST_DEBUG
/**
* gst_tracer_record_log:
* @self: the tracer-record
@@ -264,3 +265,4 @@ gst_tracer_record_log (GstTracerRecord * self, ...)
}
va_end (var_args);
}
+#endif