mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
libcamera: pipeline: ipu3: Do not mark metadata complete early
When the imguOutputBufferReady() detects a cancelled frame, it is reporting that the metadata has been processed in order to be able to complete the cancelled request. This causes the FrameInfo to be completed and deleted early, but then an active buffer on the IMGU can complete and be unable to find the FrameInfo for it to complete correctly. Do not mark metadataProcessed early on the event that a single buffer is detected as cancelled. The stopping of the V4L2 devices will ensure that all queued buffers are returned to us and we can follow the normal and expected shutdown sequence. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
4ce1a33e4b
commit
597c67120e
1 changed files with 0 additions and 3 deletions
|
@ -1232,9 +1232,6 @@ void IPU3CameraData::imguOutputBufferReady(FrameBuffer *buffer)
|
|||
cropRegion_ = request->controls().get(controls::ScalerCrop);
|
||||
request->metadata().set(controls::ScalerCrop, cropRegion_);
|
||||
|
||||
if (buffer->metadata().status == FrameMetadata::FrameCancelled)
|
||||
info->metadataProcessed = true;
|
||||
|
||||
if (frameInfos_.tryComplete(info))
|
||||
pipe_->completeRequest(request);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue