mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
vavpp: Fix the caps leak in the transform_caps() function.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1715>
This commit is contained in:
parent
29713c5d40
commit
bf486683b7
1 changed files with 12 additions and 3 deletions
|
@ -900,17 +900,26 @@ gst_va_vpp_transform_caps (GstBaseTransform * trans, GstPadDirection direction,
|
|||
ret = gst_va_vpp_caps_remove_fields (caps);
|
||||
|
||||
tmp = gst_va_vpp_complete_caps_features (ret, GST_CAPS_FEATURE_MEMORY_VA);
|
||||
if (!gst_caps_is_subset (tmp, ret))
|
||||
if (!gst_caps_is_subset (tmp, ret)) {
|
||||
gst_caps_append (ret, tmp);
|
||||
} else {
|
||||
gst_caps_unref (tmp);
|
||||
}
|
||||
|
||||
tmp = gst_va_vpp_complete_caps_features (ret, GST_CAPS_FEATURE_MEMORY_DMABUF);
|
||||
if (!gst_caps_is_subset (tmp, ret))
|
||||
if (!gst_caps_is_subset (tmp, ret)) {
|
||||
gst_caps_append (ret, tmp);
|
||||
} else {
|
||||
gst_caps_unref (tmp);
|
||||
}
|
||||
|
||||
tmp = gst_va_vpp_complete_caps_features (ret,
|
||||
GST_CAPS_FEATURE_MEMORY_SYSTEM_MEMORY);
|
||||
if (!gst_caps_is_subset (tmp, ret))
|
||||
if (!gst_caps_is_subset (tmp, ret)) {
|
||||
gst_caps_append (ret, tmp);
|
||||
} else {
|
||||
gst_caps_unref (tmp);
|
||||
}
|
||||
|
||||
bail:
|
||||
if (filter) {
|
||||
|
|
Loading…
Reference in a new issue