tracerrecord: Disable logging if GST_DISABLE_GST_DEBUG

Make the gst_tracer_record_log() a no-op if the gst-debug subsystem
is disabled.
This commit is contained in:
Edward Hervey 2016-01-19 11:10:30 +01:00 committed by Edward Hervey
parent eb4c5498b5
commit 128760f246
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -89,7 +89,11 @@ typedef enum
GstTracerRecord * gst_tracer_record_new (GstStructure *spec);
#ifndef GST_DISABLE_GST_DEBUG
void gst_tracer_record_log (GstTracerRecord *self, ...);
#else
#define gst_tracer_record_log(...) G_STMT_START {} G_STMT_END
#endif
#endif