Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 658799b7 authored by Emilian Peev's avatar Emilian Peev
Browse files

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
parent 7adef106
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment