v4l2bufferpool: Queue number of allocated buffers to capture
authorNicolas Dufresne <nicolas@ndufresne.ca>
Wed, 17 Oct 2018 02:28:13 +0000 (02:28 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 20 Nov 2019 17:33:50 +0000 (17:33 +0000)
commitfba94862a9e8205c7a83bdf15adcee5e8535f605
tree939a58b5a56c2f36f7ce87ed57c6dc5f1f430b1f
parent5fbc79c3a8ffb75e447b9e81f506da5b5bf073fe
v4l2bufferpool: Queue number of allocated buffers to capture

Before we do streamon, we queue all capture buffers by calling
resurrect. When the driver supports CREATE_BUFS, this would lead
to buffers being allocated till the maximum of 32 is reached.

Instead, we now save the number of allocated buffers and queue this
amount.
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h