diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-07-13 08:05:04 +0200 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-07-17 04:51:33 +0200 |
commit | 8f0984f2cc176e66c422fd306e573e9b2efbf1fa (patch) | |
tree | 5990d69dc85728567d6da46e4870a9b9d15994e2 /Documentation/coding-style.rst | |
parent | 01c0ad98c478bc624a941f485ef4289286008a8b (diff) |
libcamera: ipu3: Do not re-queue cancelled buffers
When a video device is stopped all the buffers there queued are released
and their state is set to BufferCancelled.
Currently, on buffer completion, cancelled buffers are blindly re-queued
to the ImgU input or CIO2 output devices, preventing them to be
re-started succesfully in future capture sessions.
Fix that by inspecting the buffers status and skip re-queueing if
they're reported as cancelled. For the ImgU output buffer this is not
required, as cancelled request should be reported to applications in
order to report them failure of the capture operations.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'Documentation/coding-style.rst')
0 files changed, 0 insertions, 0 deletions