diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-02 22:38:27 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-03-24 22:20:06 +0000 |
commit | 1d8cc0a3ec7dc04958fec12f4fdd05aabd2f7d06 (patch) | |
tree | 6d4491162bd8f365239b197e3e6f69e4dccce291 /utils/ipu3 | |
parent | 500e99174aeb3741023ec1a217c4ad5614511eef (diff) |
libcamera: v4l2_videodevice: Prevent queueing buffers without a cache
The V4l2 buffer cache allows us to map incoming buffers to an instance
of the V4L2 buffer required to actually queue.
If the cache_ is not available, then the buffers required to allow
queuing to a device have been released, and this indicates an issue at
the pipeline handler.
This could be a common mistake, as it could happen if a pipeline handler
always requeues buffers to the device after they complete, without
checking if they are cancelled.
Catch any invalid queueing of buffers to the V4L2 video device when
resources have been released by adding a Fatal log message to highlight
the error during development.
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'utils/ipu3')
0 files changed, 0 insertions, 0 deletions