mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
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:
parent
4b05736c63
commit
bbd2bce11d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue