From 7c696b67be15bfcb3a98a03a7889e089dc7bb51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 19 Aug 2020 16:50:46 +0200 Subject: [PATCH] va: allocator: remove parameter from _create_buffer_surface() Don't the allocator to _create_buffer_surface() since it's not used. Part-of: --- sys/va/gstvaallocator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/va/gstvaallocator.c b/sys/va/gstvaallocator.c index 6c44854006..cd42ffb53a 100644 --- a/sys/va/gstvaallocator.c +++ b/sys/va/gstvaallocator.c @@ -409,8 +409,8 @@ gst_va_dmabuf_allocator_new (GstVaDisplay * display) } static GstVaBufferSurface * -_create_buffer_surface (GstVaDmabufAllocator * self, VASurfaceID surface, - GstVideoFormat format, gint width, gint height) +_create_buffer_surface (VASurfaceID surface, GstVideoFormat format, + gint width, gint height) { GstVaBufferSurface *buf = g_slice_new (GstVaBufferSurface); @@ -485,7 +485,7 @@ gst_va_dmabuf_setup_buffer (GstAllocator * allocator, GstBuffer * buffer, goto failed; } - buf = _create_buffer_surface (self, surface, format, desc.width, desc.height); + buf = _create_buffer_surface (surface, format, desc.width, desc.height); for (i = 0; i < desc.num_objects; i++) { gint fd = desc.objects[i].fd;