mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
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:
parent
94e323c10f
commit
6bf9f4bd77
1 changed files with 3 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue