mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
eb4c5498b5
commit
128760f246
2 changed files with 6 additions and 0 deletions
|
@ -227,6 +227,7 @@ gst_tracer_record_new (GstStructure * spec)
|
||||||
return g_object_new (GST_TYPE_TRACER_RECORD, "spec", spec, NULL);
|
return g_object_new (GST_TYPE_TRACER_RECORD, "spec", spec, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
/**
|
/**
|
||||||
* gst_tracer_record_log:
|
* gst_tracer_record_log:
|
||||||
* @self: the tracer-record
|
* @self: the tracer-record
|
||||||
|
@ -264,3 +265,4 @@ gst_tracer_record_log (GstTracerRecord * self, ...)
|
||||||
}
|
}
|
||||||
va_end (var_args);
|
va_end (var_args);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -89,7 +89,11 @@ typedef enum
|
||||||
|
|
||||||
GstTracerRecord * gst_tracer_record_new (GstStructure *spec);
|
GstTracerRecord * gst_tracer_record_new (GstStructure *spec);
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
void gst_tracer_record_log (GstTracerRecord *self, ...);
|
void gst_tracer_record_log (GstTracerRecord *self, ...);
|
||||||
|
#else
|
||||||
|
#define gst_tracer_record_log(...) G_STMT_START {} G_STMT_END
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue