v4l2: try to allocate new buffers with VIDIOC_CREATE_BUFS if needed
authorMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 2 May 2013 07:41:01 +0000 (09:41 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 3 May 2013 09:18:04 +0000 (11:18 +0200)
commit1e777ede926c2188165071d8d09135f70d6d63b4
tree5088bfe16a447b23534c8487220a450ebf9c8089
parentbb980775f8efad30e7be51e57cb30bdc94f84053
v4l2: try to allocate new buffers with VIDIOC_CREATE_BUFS if needed

If max_buffers is 0 then an arbitrary number of buffers (currently 4) is
allocated. If this is not enough v4l2src starts copying buffers.
With this patch VIDIOC_CREATE_BUFS is used to allocate a new buffer. If
this fails v4l2src falls back to copying buffers.

https://bugzilla.gnome.org/show_bug.cgi?id=699447
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h