va: vpp: Fix the memory leak in fixate_caps().

For the BaseTransform class, the function of fixate_caps(), takes
the ownership of "othercaps". So we should clear it in our subclass.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1372>
This commit is contained in:
He Junyan 2021-11-22 17:34:22 +08:00 committed by GStreamer Marge Bot
parent f8bc5e89fd
commit a14f0da324

View file

@ -1707,6 +1707,8 @@ gst_va_vpp_fixate_caps (GstBaseTransform * trans, GstPadDirection direction,
if (!result)
return othercaps;
gst_clear_caps (&othercaps);
gst_va_vpp_fixate_size (self, direction, caps, result);
/* some fields might be lost while feature caps conversion */