v4l2pool: Fix CREATE_BUFS support for capture
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 3 Dec 2014 22:07:49 +0000 (17:07 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 4 Dec 2014 22:00:25 +0000 (17:00 -0500)
commit319efc3e202d521acf521bfd94f97852afe2c602
tree39b458726fce6862228f16754270fb9feba506d7
parentb80edd2ee2e4b8c6154c37ed115fee90ff381053
v4l2pool: Fix CREATE_BUFS support for capture

This patch fixes CREATE_BUFS support for capture devices. Initially we
would only try and allocate more buffers when the copy threshold
is reached. When the threshold was not set (needed) it would never
happen. Another problem is that on capture side, acquire returns
filled buffer, hence need to pool. We need to set a special flag to
force allocation to happen.

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