Commit 77f33e59 authored by Wim Taymans's avatar Wim Taymans
Browse files

Revert "v4l2: free kernel buffers before allocating new ones"

This reverts commit 1b09bc60.

Seems to make libv4l2 complain, maybe because we call REQBUFS with 0 buffers
before we allocated buffers.
parent 1b09bc60
......@@ -305,17 +305,6 @@ gst_v4l2_buffer_pool_set_config (GstBufferPool * bpool, GstStructure * config)
else
num_buffers = max_buffers;
/* Free the buffers from the kernel */
GST_DEBUG_OBJECT (pool, "Freeing the buffers from the kernel");
memset (&breq, 0, sizeof (struct v4l2_requestbuffers));
breq.type = obj->type;
breq.count = 0;
breq.memory = V4L2_MEMORY_MMAP;
if (v4l2_ioctl (pool->video_fd, VIDIOC_REQBUFS, &breq) < 0)
goto reqbufs_failed;
/* first, lets request buffers, and see how many we can get: */
GST_DEBUG_OBJECT (pool, "starting, requesting %d MMAP buffers",
num_buffers);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment