* commit '5901ddeb525ed7691c382e8d17f47055d7d1e5db': Release locked buffer when it fails to acquire graphics buffer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user