mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
vadeinterlace, vapostproc: Drop output buffer if process failed.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3373>
This commit is contained in:
parent
ccfb77c775
commit
bc4aa017ac
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue