[v3,0/2] Clean up pending requests on stop in software ISP
mbox series

Message ID 20241009172108.2058320-1-mzamazal@redhat.com
Headers show
Series
  • Clean up pending requests on stop in software ISP
Related show

Message

Milan Zamazal Oct. 9, 2024, 5:21 p.m. UTC
Fix for the bug #234 where software ISP may not clean up some pending
buffers in stopDevice.

Changes in v3:
- Split to two patches according to different code areas affected.
- Added a check for the request status to prevent canceling a request
  multiple times.
- Calling conversionBuffers_.clear() after the cleanup, to be safer.

Changes in v2:
- The request is additionally canceled.
- New helper method PipelineHandler::cancelRequest() introduced.

Milan Zamazal (2):
  libcamera: pipeline_handler: Provide cancelRequest
  libcamera: software_isp: Clean up pending requests on stop

 include/libcamera/internal/pipeline_handler.h |  1 +
 src/libcamera/pipeline/simple/simple.cpp      | 15 ++++++++++++
 src/libcamera/pipeline_handler.cpp            | 23 +++++++++++++------
 3 files changed, 32 insertions(+), 7 deletions(-)