Revert "v4l2bufferpool: request the maximum number of buffers for USERPTR"
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 26 Jun 2020 20:39:42 +0000 (16:39 -0400)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 28 Jun 2020 13:40:30 +0000 (13:40 +0000)
This reverts commit 6bf9f4bd77a4c6cce8786893feea7d601a6e6030.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/651>

sys/v4l2/gstv4l2bufferpool.c

index 565da28..9829bb5 100644 (file)
@@ -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 */