Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GStreamer
gstreamer
Commits
89d03168
Commit
89d03168
authored
Mar 11, 2012
by
Wim Taymans
Browse files
structure: add allocation debug
parent
fe5fe438
Changes
1
Show whitespace changes
Inline
Side-by-side
gst/gststructure.c
View file @
89d03168
...
...
@@ -138,6 +138,8 @@ gst_structure_new_id_empty_with_size (GQuark quark, guint prealloc)
GST_STRUCTURE_FIELDS
(
structure
)
=
g_array_sized_new
(
FALSE
,
FALSE
,
sizeof
(
GstStructureField
),
prealloc
);
GST_TRACE
(
"created structure %p"
,
structure
);
return
GST_STRUCTURE_CAST
(
structure
);
}
...
...
@@ -340,6 +342,8 @@ gst_structure_copy (const GstStructure * structure)
gst_value_init_and_copy
(
&
new_field
.
value
,
&
field
->
value
);
g_array_append_val
(
GST_STRUCTURE_FIELDS
(
new_structure
),
new_field
);
}
GST_CAT_TRACE
(
GST_CAT_PERFORMANCE
,
"doing copy %p -> %p"
,
structure
,
new_structure
);
return
new_structure
;
}
...
...
@@ -372,6 +376,8 @@ gst_structure_free (GstStructure * structure)
#ifdef USE_POISONING
memset
(
structure
,
0xff
,
sizeof
(
GstStructure
));
#endif
GST_TRACE
(
"free structure %p"
,
structure
);
g_slice_free1
(
sizeof
(
GstStructureImpl
),
structure
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment