libcamera: pipeline: virtual: Set FrameError
on error
Do not cancel, simply set the buffer's status to `FrameError` to notify the user about the error condition. Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
This commit is contained in:
parent
98cf9eb533
commit
7fdfe648a4
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ int PipelineHandlerVirtual::queueRequestDevice([[maybe_unused]] Camera *camera,
|
|||
|
||||
if (streamConfig.frameGenerator->generateFrame(
|
||||
stream->configuration().size, buffer))
|
||||
buffer->_d()->cancel();
|
||||
fmd.status = FrameMetadata::Status::FrameError;
|
||||
|
||||
completeBuffer(request, buffer);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue