}
static GstAllocator *
-_create_allocator (GstVaVpp * self, GstCaps * caps, guint usage_hint)
+_create_allocator (GstVaVpp * self, GstCaps * caps)
{
GstAllocator *allocator = NULL;
}
if (!allocator) {
- if (!(allocator = _create_allocator (self, caps, usage_hint)))
+ if (!(allocator = _create_allocator (self, caps)))
return FALSE;
}
/* XXX(victor): VPP_WRITE uses a tiled drm modifier by iHD */
if (gst_caps_is_dmabuf (outcaps) && GST_VIDEO_INFO_IS_RGB (&vinfo))
usage_hint = VA_SURFACE_ATTRIB_USAGE_HINT_GENERIC;
- if (!(allocator = _create_allocator (self, outcaps, usage_hint)))
+ if (!(allocator = _create_allocator (self, outcaps)))
return FALSE;
}
size = GST_VIDEO_INFO_SIZE (&in_info);
- allocator = _create_allocator (self, caps, usage_hint);
+ allocator = _create_allocator (self, caps);
self->sinkpad_pool = _create_sinkpad_bufferpool (caps, size, 1, 0, usage_hint,
allocator, ¶ms);