mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
structure: use local variable earlier
This commit is contained in:
parent
7bd9299f3e
commit
94f6eced23
1 changed files with 2 additions and 4 deletions
|
@ -296,11 +296,9 @@ gst_structure_copy (const GstStructure * structure)
|
||||||
|
|
||||||
g_return_val_if_fail (structure != NULL, NULL);
|
g_return_val_if_fail (structure != NULL, NULL);
|
||||||
|
|
||||||
new_structure =
|
|
||||||
gst_structure_id_empty_new_with_size (structure->name,
|
|
||||||
structure->fields->len);
|
|
||||||
|
|
||||||
len = structure->fields->len;
|
len = structure->fields->len;
|
||||||
|
new_structure = gst_structure_id_empty_new_with_size (structure->name, len);
|
||||||
|
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
GstStructureField new_field = { 0 };
|
GstStructureField new_field = { 0 };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue