vaapipostproc: don't copy the GstParentBufferMeta if use_vpp
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 25 May 2018 14:47:00 +0000 (16:47 +0200)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 7 Jun 2018 09:55:06 +0000 (11:55 +0200)
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

gst/vaapi/gstvaapipostproc.c

index 2b88821..df977f1 100644 (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;
 }