From 1beb497aa725e9fbc0ea6cae20270f4a5dad650f Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 26 Jun 2020 16:39:42 -0400 Subject: [PATCH] Revert "v4l2bufferpool: request the maximum number of buffers for USERPTR" This reverts commit 6bf9f4bd77a4c6cce8786893feea7d601a6e6030. Part-of: --- sys/v4l2/gstv4l2bufferpool.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 565da286eb..9829bb533d 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -826,10 +826,9 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool) can_allocate = GST_V4L2_ALLOCATOR_CAN_ALLOCATE (pool->vallocator, USERPTR); - GST_DEBUG_OBJECT (pool, "requesting %d USERPTR import slots", - max_buffers); + GST_DEBUG_OBJECT (pool, "requesting %d USERPTR buffers", min_buffers); - count = gst_v4l2_allocator_start (pool->vallocator, max_buffers, + count = gst_v4l2_allocator_start (pool->vallocator, min_buffers, V4L2_MEMORY_USERPTR); /* There is no rational to not get what we asked */