mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
caps: Set features' parent refcount in gst_caps_set_features() too
This commit is contained in:
parent
ccd2966f7a
commit
efcb4023e6
1 changed files with 4 additions and 0 deletions
|
@ -863,6 +863,10 @@ gst_caps_set_features (GstCaps * caps, guint index, GstCapsFeatures * features)
|
|||
storage = &gst_caps_get_features_unchecked (caps, index);
|
||||
old = *storage;
|
||||
*storage = features;
|
||||
|
||||
if (features)
|
||||
gst_caps_features_set_parent_refcount (features, &GST_CAPS_REFCOUNT (caps));
|
||||
|
||||
if (old)
|
||||
gst_caps_features_free (old);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue