summaryrefslogtreecommitdiff
path: root/libs/androidfw/BackupHelpers.cpp
diff options
context:
space:
mode:
author Emilian Peev <epeev@google.com> 2024-03-11 19:21:44 +0000
committer Emilian Peev <epeev@google.com> 2024-03-12 18:13:51 +0000
commit658799b7f7a34a58ab255981a95268b8ca02ab20 (patch)
tree76557549ee13094a6c7f6351ae15e0e67448a588 /libs/androidfw/BackupHelpers.cpp
parent7adef106ebd1d00c100338096f850fa118b6f150 (diff)
Camera: Skip extension processing if session is not valid
The preview request handler can run in a client supplied executor. The corresponding thread can continue to be active and process result callbacks after the camera device and session are no longer valid which can have effect on the pending images. To avoid accessing closed images, check whether the session is still initialized. Bug: 311634576 Test: atest -c -d cts/tests/camera/src/android/hardware/camera2/cts/CameraExtensionSessionTest.java Change-Id: Ic6079f4eddc07a58b82039c59b46c1a1166a2c12
Diffstat (limited to 'libs/androidfw/BackupHelpers.cpp')
0 files changed, 0 insertions, 0 deletions