From f2c0e89021d67562476a61d89185f9071ac24ffa Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 17 May 2016 17:14:49 +0300 Subject: [PATCH] gst-libs: gl, video: use MAY_BE_LEAKED flag https://bugzilla.gnome.org/show_bug.cgi?id=767162 --- gst-libs/gst/video/gstvideoaggregator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 28b2283..9046252 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -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); -- 2.7.4