mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-10 01:54:11 +00:00
vajpegdec: Set maybe-leaked flag on template caps
The fixup function could return new caps object Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3642>
This commit is contained in:
parent
6c621bba02
commit
aba7f7c7eb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue