mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
trace: add GST_ALLOC_TRACE_NONE for consistency and use it
Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
parent
97442ad1a3
commit
c0749e7762
2 changed files with 6 additions and 4 deletions
|
@ -262,7 +262,7 @@ _gst_trace_add_entry (GstTrace * trace, guint32 seq, guint32 data, gchar * msg)
|
||||||
|
|
||||||
|
|
||||||
/* global flags */
|
/* global flags */
|
||||||
static GstAllocTraceFlags _gst_trace_flags = 0;
|
static GstAllocTraceFlags _gst_trace_flags = GST_ALLOC_TRACE_NONE;
|
||||||
|
|
||||||
/* list of registered tracers */
|
/* list of registered tracers */
|
||||||
static GList *_gst_alloc_tracers = NULL;
|
static GList *_gst_alloc_tracers = NULL;
|
||||||
|
|
|
@ -30,12 +30,14 @@ G_BEGIN_DECLS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstAllocTraceFlags:
|
* GstAllocTraceFlags:
|
||||||
* @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory
|
* @GST_ALLOC_TRACE_NONE: No tracing specified or desired.
|
||||||
* @GST_ALLOC_TRACE_MEM_LIVE: trace pointers of unfreed memory
|
* @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory.
|
||||||
|
* @GST_ALLOC_TRACE_MEM_LIVE: Trace pointers of unfreed memory.
|
||||||
*
|
*
|
||||||
* Flags indicating which tracing feature to enable.
|
* Flags indicating which tracing feature to enable.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
GST_ALLOC_TRACE_NONE = 0,
|
||||||
GST_ALLOC_TRACE_LIVE = (1 << 0),
|
GST_ALLOC_TRACE_LIVE = (1 << 0),
|
||||||
GST_ALLOC_TRACE_MEM_LIVE = (1 << 1)
|
GST_ALLOC_TRACE_MEM_LIVE = (1 << 1)
|
||||||
} GstAllocTraceFlags;
|
} GstAllocTraceFlags;
|
||||||
|
|
Loading…
Reference in a new issue