summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-04-22 15:51:27 +0200
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2021-04-28 11:39:24 +0200
commit672c977927fe2897276811c6e2d3ba092e1c7059 (patch)
tree8e55838a5ab85461e96cf198bf3ada6bbba249b1 /sys
parent9365073d50064c90e4ea6def051e49bb7576175b (diff)
downloadgstreamer-plugins-bad-672c977927fe2897276811c6e2d3ba092e1c7059.tar.gz
va: postproc: Remove unused parameter.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2127>
Diffstat (limited to 'sys')
-rw-r--r--sys/va/gstvavpp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/va/gstvavpp.c b/sys/va/gstvavpp.c
index 9944ef0fa..a7ce71b04 100644
--- a/sys/va/gstvavpp.c
+++ b/sys/va/gstvavpp.c
@@ -479,7 +479,7 @@ gst_va_vpp_set_context (GstElement * element, GstContext * context)
}
static GstAllocator *
-_create_allocator (GstVaVpp * self, GstCaps * caps, guint usage_hint)
+_create_allocator (GstVaVpp * self, GstCaps * caps)
{
GstAllocator *allocator = NULL;
@@ -573,7 +573,7 @@ gst_va_vpp_propose_allocation (GstBaseTransform * trans,
}
if (!allocator) {
- if (!(allocator = _create_allocator (self, caps, usage_hint)))
+ if (!(allocator = _create_allocator (self, caps)))
return FALSE;
}
@@ -694,7 +694,7 @@ gst_va_vpp_decide_allocation (GstBaseTransform * trans, GstQuery * query)
/* 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;
}
@@ -1175,7 +1175,7 @@ _get_sinkpad_pool (GstVaVpp * self)
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, &params);