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

Commit 5901ddeb authored by Zhijun He's avatar Zhijun He Committed by Android Git Automerger
Browse files

am 0a1b64fe: Merge "Release locked buffer when it fails to acquire graphics buffer"

* commit '0a1b64fe':
  Release locked buffer when it fails to acquire graphics buffer
parents 2cd0563c 0a1b64fe
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;