vaapipostproc: don't copy the GstParentBufferMeta if use_vpp

Otherwise a reference to a DMABuf input buffer is kept until the output
buffer is deleted.

https://bugzilla.gnome.org/show_bug.cgi?id=796399
This commit is contained in:
Michael Olbrich 2018-05-25 16:47:00 +02:00 committed by Víctor Manuel Jáquez Leal
parent aa77862b62
commit d79bda3153

View file

@ -1280,6 +1280,11 @@ gst_vaapipostproc_transform_meta (GstBaseTransform * trans, GstBuffer * outbuf,
/* dont' GstVideoCropMeta if use_vpp */
if (meta->info->api == GST_VIDEO_CROP_META_API_TYPE && postproc->use_vpp)
return FALSE;
/* don't copy GstParentBufferMeta if use_vpp */
if (meta->info->api == GST_PARENT_BUFFER_META_API_TYPE && postproc->use_vpp)
return FALSE;
return TRUE;
}