vabasetransform: Fail if cannot import the input buffer.

Otherwise got a buffer double free.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3348>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-10-26 18:04:17 +02:00 committed by GStreamer Marge Bot
parent 4b05736c63
commit bbd2bce11d

View file

@ -879,11 +879,11 @@ gst_va_base_transform_import_buffer (GstVaBaseTransform * self,
invalid_buffer:
{
GST_ELEMENT_WARNING (self, CORE, NOT_IMPLEMENTED, (NULL),
GST_ELEMENT_WARNING (self, STREAM, FORMAT, (NULL),
("invalid video buffer received"));
if (buffer)
gst_buffer_unref (buffer);
return GST_FLOW_OK;
return GST_FLOW_ERROR;
}
}