From: Víctor Manuel Jáquez Leal Date: Wed, 26 Oct 2022 16:04:17 +0000 (+0200) Subject: vabasetransform: Fail if cannot import the input buffer. X-Git-Tag: 1.22.0~543 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bbd2bce11d7a0cd23048461d565e48b7ef41532d;p=platform%2Fupstream%2Fgstreamer.git vabasetransform: Fail if cannot import the input buffer. Otherwise got a buffer double free. Part-of: --- diff --git a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c index ee7aafc..5ced2fa 100644 --- a/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c +++ b/subprojects/gst-plugins-bad/sys/va/gstvabasetransform.c @@ -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; } }