caps: use a safer name for temporary var. to not shadow one from outer scope
authorStefan Kost <ensonic@users.sf.net>
Tue, 8 Jun 2010 09:10:36 +0000 (12:10 +0300)
committerStefan Kost <ensonic@users.sf.net>
Tue, 8 Jun 2010 09:19:22 +0000 (12:19 +0300)
gst/gstcaps.c

index f2c4dab..433c929 100644 (file)
      ((GstStructure *)g_ptr_array_index ((caps)->structs, (index)))
 /* quick way to append a structure without checking the args */
 #define gst_caps_append_structure_unchecked(caps, structure) G_STMT_START{\
-  GstStructure *s=structure;                                      \
-  gst_structure_set_parent_refcount (s, &caps->refcount);         \
-  g_ptr_array_add (caps->structs, s);                             \
+  GstStructure *__s=structure;                                      \
+  gst_structure_set_parent_refcount (__s, &caps->refcount);         \
+  g_ptr_array_add (caps->structs, __s);                             \
 }G_STMT_END
 
 /* lock to protect multiple invocations of static caps to caps conversion */