mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
caps: only add the structure when we could set the parent
This commit is contained in:
parent
877c1c28ff
commit
32f1899354
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@
|
|||
/* 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, &GST_MINI_OBJECT_REFCOUNT(caps)); \
|
||||
if (gst_structure_set_parent_refcount (__s, &GST_MINI_OBJECT_REFCOUNT(caps))) \
|
||||
g_ptr_array_add (caps->structs, __s); \
|
||||
}G_STMT_END
|
||||
|
||||
|
|
Loading…
Reference in a new issue