Flag caps that are cached locally and will never be freed.
https://bugzilla.gnome.org/show_bug.cgi?id=767155
caps = gst_caps_new_empty ();
+ /* The caps is cached */
+ GST_MINI_OBJECT_FLAG_SET (caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
+
/* Generate our two template structures */
g_value_init (&rate_array, GST_TYPE_LIST);
g_value_init (&v, G_TYPE_INT);
gst_caps_unref (_factory_caps);
_factory_caps = gst_caps_new_empty ();
+ /* The caps is cached */
+ GST_MINI_OBJECT_FLAG_SET (_factory_caps,
+ GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
+
factories = gst_registry_feature_filter (registry,
(GstPluginFeatureFilter) _factory_filter, FALSE, &_factory_caps);
GST_DEBUG ("Created factory caps: %" GST_PTR_FORMAT, _factory_caps);