vadeinterlace, vapostproc: Drop output buffer if process failed.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3373>
This commit is contained in:
Víctor Manuel Jáquez Leal 2022-11-09 14:53:30 +01:00
parent ccfb77c775
commit bc4aa017ac
2 changed files with 2 additions and 0 deletions

View file

@ -425,6 +425,7 @@ gst_va_deinterlace_transform (GstBaseTransform * trans, GstBuffer * inbuf,
if (!gst_va_filter_process (btrans->filter, &src, &dst)) {
gst_buffer_set_flags (outbuf, GST_BUFFER_FLAG_CORRUPTED);
res = GST_BASE_TRANSFORM_FLOW_DROPPED;
}
return res;

View file

@ -845,6 +845,7 @@ gst_va_vpp_transform (GstBaseTransform * trans, GstBuffer * inbuf,
if (!gst_va_filter_process (btrans->filter, &src, &dst)) {
gst_buffer_set_flags (outbuf, GST_BUFFER_FLAG_CORRUPTED);
res = GST_BASE_TRANSFORM_FLOW_DROPPED;
}
gst_buffer_unref (buf);