gst-libs: gl, video: use MAY_BE_LEAKED flag

https://bugzilla.gnome.org/show_bug.cgi?id=767162
This commit is contained in:
Guillaume Desmottes 2016-05-17 17:14:49 +03:00 committed by Tim-Philipp Müller
parent 11bb4454a8
commit f2c0e89021

View file

@ -2230,6 +2230,10 @@ gst_video_aggregator_init (GstVideoAggregator * vagg,
g_mutex_lock (&sink_caps_mutex);
if (klass->sink_non_alpha_caps == NULL) {
klass->sink_non_alpha_caps = _get_non_alpha_caps_from_template (klass);
/* The caps is cached */
GST_MINI_OBJECT_FLAG_SET (klass->sink_non_alpha_caps,
GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED);
}
g_mutex_unlock (&sink_caps_mutex);