mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-27 00:16:37 +00:00
caps: use a safer name for temporary var. to not shadow one from outer scope
This commit is contained in:
parent
ad619a4e84
commit
c5f85a1cda
1 changed files with 3 additions and 3 deletions
|
@ -109,9 +109,9 @@
|
||||||
((GstStructure *)g_ptr_array_index ((caps)->structs, (index)))
|
((GstStructure *)g_ptr_array_index ((caps)->structs, (index)))
|
||||||
/* quick way to append a structure without checking the args */
|
/* quick way to append a structure without checking the args */
|
||||||
#define gst_caps_append_structure_unchecked(caps, structure) G_STMT_START{\
|
#define gst_caps_append_structure_unchecked(caps, structure) G_STMT_START{\
|
||||||
GstStructure *s=structure; \
|
GstStructure *__s=structure; \
|
||||||
gst_structure_set_parent_refcount (s, &caps->refcount); \
|
gst_structure_set_parent_refcount (__s, &caps->refcount); \
|
||||||
g_ptr_array_add (caps->structs, s); \
|
g_ptr_array_add (caps->structs, __s); \
|
||||||
}G_STMT_END
|
}G_STMT_END
|
||||||
|
|
||||||
/* lock to protect multiple invocations of static caps to caps conversion */
|
/* lock to protect multiple invocations of static caps to caps conversion */
|
||||||
|
|
Loading…
Reference in a new issue