From: Seungha Yang Date: Mon, 26 Dec 2022 11:53:53 +0000 (+0900) Subject: vajpegdec: Set maybe-leaked flag on template caps X-Git-Tag: 1.22.0~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aba7f7c7ebd1555752b83bfe69f0394d146ea503;p=platform%2Fupstream%2Fgstreamer.git vajpegdec: Set maybe-leaked flag on template caps The fixup function could return new caps object Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c b/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c index bdde17d..33d2b8d 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvajpegdec.c @@ -614,7 +614,8 @@ gst_va_jpeg_dec_register (GstPlugin * plugin, GstVaDevice * device, /* class data will be leaked if the element never gets instantiated */ GST_MINI_OBJECT_FLAG_SET (cdata->sink_caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED); - GST_MINI_OBJECT_FLAG_SET (src_caps, GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED); + GST_MINI_OBJECT_FLAG_SET (cdata->src_caps, + GST_MINI_OBJECT_FLAG_MAY_BE_LEAKED); type_info.class_data = cdata;