diff options
author | Bartlomiej Moskal <[email protected]> | 2025-05-19 11:07:49 +0200 |
---|---|---|
committer | Bartlomiej Moskal <[email protected]> | 2025-05-23 18:43:49 +0000 |
commit | 5b50570ceca3da253ef6db3fe1f332eb484202ce (patch) | |
tree | 98414ba20672354816d882200ce7d082fbdeff35 /tests/manual/script.js | |
parent | bc782f538c2afe70457a14c5102cbf978740fa60 (diff) |
[0]setRepeatingRequest is used to continuously stream frames. This
method may throw an IllegalStateException if the session is no longer
active—either because it was explicitly closed, a new session was
created, or the camera device was closed.
While IllegalStateException is already handled in other calls to
setRepeatingRequest, it was missing in the
StillPhotoCaptureSessionCallback.
This commit adds proper handling for IllegalStateException in that
callback. Additionally, it introduces a check to ensure mIsStarted is
set before invoking setRepeatingRequest.
[0]https://developer.android.com/reference/android/hardware/camera2/CameraCaptureSession#setRepeatingRequest(android.hardware.camera2.CaptureRequest,%20android.hardware.camera2.CameraCaptureSession.CaptureCallback,%20android.os.Handler)
Pick-to: 6.9 6.8
Fixes: QTBUG-136227
Change-Id: I733d81761f94aea6da267bae6d339727c39a858c
Reviewed-by: Nils Petter Skålerud <[email protected]>
Reviewed-by: Artem Dyomin <[email protected]>
Diffstat (limited to 'tests/manual/script.js')
0 files changed, 0 insertions, 0 deletions