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

Skip to content
Commit a52f68e3 authored by Shuzhen Wang's avatar Shuzhen Wang Committed by Android Build Coastguard Worker
Browse files

ImageWriter: Check Surface is valid before use

For some reason, getProducer() returns a nullptr even though the
JNI context is valid.

The only explanation is that ~JNIImageWriterContext is called
right before ImageWriter_attachAndQueueImage().
When ImageWriter_attachAndQueueImage() is called, the context is still
valid even though mProducer is already cleared.

Flag: EXEMPT bug-fix
Test: ImageWriterTest
Bug: 362116761
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:7f974147592c4d3242a5ae6fca70b2ed079912ea)
Merged-In: Id24e7fc7ac63e703146337690f42df99e3daac5b
Change-Id: Id24e7fc7ac63e703146337690f42df99e3daac5b
parent e1d1b662
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment