libcamera/src
Naushir Patuck e87fb20f8f pipeline: raspberrypi: Fix a bug when clearing out Request buffers on stop
When RPiCameraData::clearIncompleteRequests() clears out the request
queue during a stop condition, it unconditionally calls completeBuffer()
on all buffers in each request.  This is wrong, as a buffer could have
already been completed as part of the current request, but the request
itself may not yet have completed.

Fix this by checking if the buffers in the request have been completed
before cancelling them.

Fixes: d372aaa10d ("pipeline: raspberrypi: Simplify RPiCameraData::clearIncompleteRequests()")
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Tested-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2021-07-28 09:55:24 +03:00
..
android android: capabilities: Centralize RAW support check 2021-07-27 17:36:20 +02:00
cam cam: options: Restore std::cerr adjustment field 2021-07-27 13:28:07 +03:00
gstreamer gstreamer: Store group_id in GstLibcameraSrcState 2021-07-28 10:44:37 +09:00
ipa libipa: Add CameraSensorHelper for ov8865 2021-07-25 01:52:48 +03:00
lc-compliance lc-compliance: Add list and filter parameters 2021-07-06 12:41:03 +02:00
libcamera pipeline: raspberrypi: Fix a bug when clearing out Request buffers on stop 2021-07-28 09:55:24 +03:00
qcam libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
v4l2 libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
meson.build android: Split HAL to its own shared library 2021-06-25 16:09:46 +01:00