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:
Barnabás Pőcze 2025-02-03 10:43:34 +00:00
parent 98cf9eb533
commit 7fdfe648a4

View file

@ -322,7 +322,7 @@ int PipelineHandlerVirtual::queueRequestDevice([[maybe_unused]] Camera *camera,
if (streamConfig.frameGenerator->generateFrame( if (streamConfig.frameGenerator->generateFrame(
stream->configuration().size, buffer)) stream->configuration().size, buffer))
buffer->_d()->cancel(); fmd.status = FrameMetadata::Status::FrameError;
completeBuffer(request, buffer); completeBuffer(request, buffer);
break; break;