From: Guillaume Desmottes Date: Tue, 17 May 2016 14:14:49 +0000 (+0300) Subject: gst-libs: gl, video: use MAY_BE_LEAKED flag X-Git-Tag: 1.19.3~511^2~1294^2~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2c0e89021d67562476a61d89185f9071ac24ffa;p=platform%2Fupstream%2Fgstreamer.git gst-libs: gl, video: use MAY_BE_LEAKED flag https://bugzilla.gnome.org/show_bug.cgi?id=767162 --- 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);