v4l2: dequeue buffers when all are queued
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jul 2011 13:47:05 +0000 (14:47 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 25 Jul 2011 13:47:05 +0000 (14:47 +0100)
commit0a88ac4c92adc79ac731e91512d5befcc4b3f7bc
tree98cacda015c779ce7e54803a179eb62ca7b82dfd
parent7ca40d7a53c489f3069dbde3dfdda0758b9c1bd9
v4l2: dequeue buffers when all are queued

Prefer to always use the default bufferpool queue for the _acquire function
because it properly supports unblocking when setting inactive etc. As a result,
we need to dequeue buffers and put them back in the bufferpool queue when we
have queued all buffers in the sink.
Rename some variables to more meaningfull names to avoid a problem with
freeing the wrong amount of buffers.
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.h