mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
tracerrecord: Initialise flags to avoid wrong comparision
GstTracerValueFlags is not being initialized and the same could result in wrong comparision and behavior. Hence initializing it to GST_TRACER_VALUE_FLAGS_NONE. https://bugzilla.gnome.org/show_bug.cgi?id=760821
This commit is contained in:
parent
bdc34bd61a
commit
fc02815459
1 changed files with 3 additions and 2 deletions
|
@ -73,8 +73,8 @@ build_field_template (GQuark field_id, const GValue * value, gpointer user_data)
|
|||
GString *s = (GString *) user_data;
|
||||
const GstStructure *sub;
|
||||
GValue template_value = { 0, };
|
||||
GType type;
|
||||
GstTracerValueFlags flags;
|
||||
GType type = G_TYPE_INVALID;
|
||||
GstTracerValueFlags flags = GST_TRACER_VALUE_FLAGS_NONE;
|
||||
gboolean res;
|
||||
|
||||
g_return_val_if_fail (G_VALUE_TYPE (value) == GST_TYPE_STRUCTURE, FALSE);
|
||||
|
@ -111,6 +111,7 @@ gst_tracer_record_build_format (GstTracerRecord * self)
|
|||
|
||||
g_return_if_fail (g_str_has_suffix (name, ".class"));
|
||||
|
||||
/* announce the format */
|
||||
GST_TRACE ("%" GST_PTR_FORMAT, structure);
|
||||
|
||||
/* cut off '.class' suffix */
|
||||
|
|
Loading…
Reference in a new issue