Loading media/jni/android_media_ImageReader.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -698,8 +698,11 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz, CpuConsumer* consumer = ctx->getCpuConsumer(); CpuConsumer::LockedBuffer* buffer = ctx->getLockedBuffer(); if (buffer == NULL) { ALOGE("Unable to acquire a lockedBuffer, very likely client tries to lock more than" ALOGW("Unable to acquire a lockedBuffer, very likely client tries to lock more than" " maxImages buffers"); jniThrowException(env, OutOfResourcesException, "Too many outstanding images, close existing images" " to be able to acquire more."); return false; } status_t res = consumer->lockNextBuffer(buffer); Loading Loading
media/jni/android_media_ImageReader.cpp +6 −3 Original line number Diff line number Diff line Loading @@ -698,8 +698,11 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz, CpuConsumer* consumer = ctx->getCpuConsumer(); CpuConsumer::LockedBuffer* buffer = ctx->getLockedBuffer(); if (buffer == NULL) { ALOGE("Unable to acquire a lockedBuffer, very likely client tries to lock more than" ALOGW("Unable to acquire a lockedBuffer, very likely client tries to lock more than" " maxImages buffers"); jniThrowException(env, OutOfResourcesException, "Too many outstanding images, close existing images" " to be able to acquire more."); return false; } status_t res = consumer->lockNextBuffer(buffer); Loading