mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
vaapi: fix minor leaks
https://bugzilla.gnome.org/show_bug.cgi?id=767868
This commit is contained in:
parent
fc8fbddc5c
commit
2fb05613a0
2 changed files with 5 additions and 1 deletions
|
@ -333,6 +333,8 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
|||
allocation_caps);
|
||||
}
|
||||
gst_caps_replace (&state->allocation_caps, allocation_caps);
|
||||
if (allocation_caps)
|
||||
gst_caps_unref (allocation_caps);
|
||||
|
||||
GST_INFO_OBJECT (decode, "new src caps = %" GST_PTR_FORMAT, state->caps);
|
||||
gst_caps_replace (&decode->srcpad_caps, state->caps);
|
||||
|
|
|
@ -1046,7 +1046,7 @@ gst_vaapipostproc_fixate_caps (GstBaseTransform * trans,
|
|||
GstPadDirection direction, GstCaps * caps, GstCaps * othercaps)
|
||||
{
|
||||
GstVaapiPostproc *const postproc = GST_VAAPIPOSTPROC (trans);
|
||||
GstCaps *outcaps;
|
||||
GstCaps *outcaps = NULL;
|
||||
|
||||
GST_DEBUG_OBJECT (trans, "trying to fixate othercaps %" GST_PTR_FORMAT
|
||||
" based on caps %" GST_PTR_FORMAT " in direction %s", othercaps, caps,
|
||||
|
@ -1065,6 +1065,8 @@ gst_vaapipostproc_fixate_caps (GstBaseTransform * trans,
|
|||
|
||||
done:
|
||||
GST_DEBUG_OBJECT (trans, "fixated othercaps to %" GST_PTR_FORMAT, othercaps);
|
||||
if (outcaps)
|
||||
gst_caps_unref (outcaps);
|
||||
|
||||
return othercaps;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue