v4l2bufferpool: request the maximum number of buffers for USERPTR

This is to match what we now do for DMABuf importation.
This commit is contained in:
Nicolas Dufresne 2020-04-08 12:34:40 -04:00 committed by GStreamer Merge Bot
parent 94e323c10f
commit 6bf9f4bd77

View file

@ -821,9 +821,10 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
can_allocate =
GST_V4L2_ALLOCATOR_CAN_ALLOCATE (pool->vallocator, USERPTR);
GST_DEBUG_OBJECT (pool, "requesting %d USERPTR buffers", min_buffers);
GST_DEBUG_OBJECT (pool, "requesting %d USERPTR import slots",
max_buffers);
count = gst_v4l2_allocator_start (pool->vallocator, min_buffers,
count = gst_v4l2_allocator_start (pool->vallocator, max_buffers,
V4L2_MEMORY_USERPTR);
/* There is no rational to not get what we asked */