mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
f8bc5e89fd
commit
a14f0da324
1 changed files with 2 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue