caps: Set features' parent refcount in gst_caps_set_features() too

This commit is contained in:
Sebastian Dröge 2013-04-01 10:19:01 +02:00
parent ccd2966f7a
commit efcb4023e6

View file

@ -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);
}