diff options
author | Stefan Kost <ensonic@users.sf.net> | 2009-11-16 13:53:44 +0200 |
---|---|---|
committer | Stefan Kost <ensonic@users.sf.net> | 2009-11-17 09:40:12 +0200 |
commit | 94f6eced2385ca40f07aede2bfe37da400176e9a (patch) | |
tree | dce13bb2d7786662da8ffd2158993f200d8dbc95 | |
parent | 7bd9299f3ea310f6b43be8c8f25fc0e005682c43 (diff) |
structure: use local variable earlier
-rw-r--r-- | gst/gststructure.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gst/gststructure.c b/gst/gststructure.c index 051c54164d..fb48c812d5 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -296,11 +296,9 @@ gst_structure_copy (const GstStructure * structure) 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; + new_structure = gst_structure_id_empty_new_with_size (structure->name, len); + for (i = 0; i < len; i++) { GstStructureField new_field = { 0 }; |