mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
gst/gsttrace.h: Fix #ifdef nesting (bug #139109) Patch from jensgr@gmx.net (Jens Granseuer)
Original commit message from CVS: * gst/gsttrace.h: Fix #ifdef nesting (bug #139109) Patch from jensgr@gmx.net (Jens Granseuer)
This commit is contained in:
parent
f63e0209bf
commit
cce13e8e5c
2 changed files with 8 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-04-05 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/gsttrace.h: Fix #ifdef nesting (bug #139109) Patch from
|
||||
jensgr@gmx.net (Jens Granseuer)
|
||||
|
||||
2004-04-05 David Schleef <ds@schleef.org>
|
||||
|
||||
* gst/gstbuffer.c: (_gst_buffer_sub_free),
|
||||
|
|
|
@ -24,12 +24,12 @@
|
|||
#ifndef __GST_TRACE_H__
|
||||
#define __GST_TRACE_H__
|
||||
|
||||
#ifndef GST_DISABLE_TRACE
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#ifndef GST_DISABLE_TRACE
|
||||
|
||||
typedef struct _GstTrace GstTrace;
|
||||
typedef struct _GstTraceEntry GstTraceEntry;
|
||||
|
||||
|
@ -125,15 +125,11 @@ G_STMT_START { \
|
|||
#endif
|
||||
|
||||
|
||||
#ifndef GST_DISABLE_TRACE
|
||||
extern gint _gst_trace_on;
|
||||
#define gst_trace_add_entry(trace,seq,data,msg) \
|
||||
if (_gst_trace_on) { \
|
||||
_gst_trace_add_entry(trace,(guint32)seq,(guint32)data,msg); \
|
||||
}
|
||||
#else
|
||||
#define gst_trace_add_entry(trace,seq,data,msg)
|
||||
#endif
|
||||
|
||||
#else /* GST_DISABLE_TRACE */
|
||||
|
||||
|
@ -164,6 +160,7 @@ extern gint _gst_trace_on;
|
|||
#define gst_alloc_trace_print(trace)
|
||||
#define gst_alloc_trace_set_flags(trace,flags)
|
||||
|
||||
#define gst_trace_add_entry(trace,seq,data,msg)
|
||||
|
||||
#endif /* GST_DISABLE_TRACE */
|
||||
|
||||
|
|
Loading…
Reference in a new issue