mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 21:31:18 +00:00
v4l2codecs: Fix caps leak after sorting caps
gst_v4l2_format_sort_caps() create a new caps which need to be release to avoid leak. Co-authored-by: Robert Mader <robert.mader@posteo.de> Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8583>
This commit is contained in:
parent
95a3c0123f
commit
cb681d8d28
1 changed files with 2 additions and 0 deletions
|
@ -688,8 +688,10 @@ gst_v4l2_decoder_select_src_format (GstV4l2Decoder * self, GstCaps * caps,
|
|||
if (!gst_video_info_dma_drm_from_caps (&tmp_vinfo_drm, caps) &&
|
||||
!gst_video_info_from_caps (&tmp_vinfo_drm.vinfo, caps)) {
|
||||
GST_WARNING_OBJECT (self, "Can't transform caps into video info!");
|
||||
gst_caps_unref (caps);
|
||||
return FALSE;
|
||||
}
|
||||
gst_caps_unref (caps);
|
||||
|
||||
format = tmp_vinfo_drm.vinfo.finfo->format;
|
||||
if (!gst_v4l2_format_from_drm_format (tmp_vinfo_drm.drm_fourcc,
|
||||
|
|
Loading…
Reference in a new issue