GNOME Bugzilla – Bug 699447
v4l2: try to allocate new buffers with VIDIOC_CREATE_BUFS if needed
Last modified: 2013-05-03 09:13:56 UTC
Created attachment 243024 [details] [review] patch 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.
This should also help the sink if I'm not missing anything, at least if the sink is providing buffers to upstream. commit de5a63bb0999aa72a152b82ed349ec129a79358a Author: Michael Olbrich <m.olbrich@pengutronix.de> Date: Thu May 2 09:41:01 2013 +0200 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