summaryrefslogtreecommitdiff
path: root/src/gstreamer/gstlibcameraprovider.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2023-01-30 18:02:43 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-03-21 23:47:59 +0000
commite39f046f660a6d0954d81b92bd183e7ba679fa56 (patch)
treee1053e53c114a0bbecbe5ebde4c7c05c8711d074 /src/gstreamer/gstlibcameraprovider.cpp
parentd9371444c487878e0bc37e89441d025efc0f3567 (diff)
libcamera: camera: Ensure queued requests are invalid
Invalid, or not correctly reset requests can cause undefined behaviour in the pipeline handlers due to unexpected request state. If the status has not been reset to Request::RequestPending, it is either not new, or has not been correctly procesed through Request::reuse(). This can be caught early by validating the status of the request when it is queued to a camera. Reject invalid requests before processing them in the pipeline handlers. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/gstreamer/gstlibcameraprovider.cpp')
0 files changed, 0 insertions, 0 deletions