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

Commit 10586ad2 authored by Zhijun He's avatar Zhijun He Committed by Android Git Automerger
Browse files

am 4f840dd1: am 5901ddeb: am 0a1b64fe: Merge "Release locked buffer when it...

am 4f840dd1: am 5901ddeb: am 0a1b64fe: Merge "Release locked buffer when it fails to acquire graphics buffer"

* commit '4f840dd1':
  Release locked buffer when it fails to acquire graphics buffer
parents b9fd12ac 4f840dd1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -707,6 +707,7 @@ static jint ImageReader_imageSetup(JNIEnv* env, jobject thiz,
    }
    status_t res = consumer->lockNextBuffer(buffer);
    if (res != NO_ERROR) {
        ctx->returnLockedBuffer(buffer);
        if (res != BAD_VALUE /*no buffers*/) {
            if (res == NOT_ENOUGH_DATA) {
                return ACQUIRE_MAX_IMAGES;