From 5e712064dfe48992f8f732208fa4fc13f3455b30 Mon Sep 17 00:00:00 2001 From: Igor Murashkin Date: Thu, 29 Aug 2013 15:38:17 -0700 Subject: media: Update ImageReader APIs Bug: 10461757 Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb --- media/jni/android_media_ImageReader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'media/jni') diff --git a/media/jni/android_media_ImageReader.cpp b/media/jni/android_media_ImageReader.cpp index 94f20bc..56ae6b4 100644 --- a/media/jni/android_media_ImageReader.cpp +++ b/media/jni/android_media_ImageReader.cpp @@ -43,8 +43,8 @@ using namespace android; -static const char* const OutOfResourcesException = - "android/view/Surface$OutOfResourcesException"; +static const char* const MaxImagesAcquiredException = + "android/media/ImageReader$MaxImagesAcquiredException"; enum { IMAGE_READER_MAX_NUM_PLANES = 3, @@ -700,7 +700,7 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz, if (buffer == NULL) { ALOGW("Unable to acquire a lockedBuffer, very likely client tries to lock more than" " maxImages buffers"); - jniThrowException(env, OutOfResourcesException, + jniThrowException(env, MaxImagesAcquiredException, "Too many outstanding images, close existing images" " to be able to acquire more."); return false; @@ -709,7 +709,7 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz, if (res != NO_ERROR) { if (res != BAD_VALUE /*no buffers*/) { if (res == NOT_ENOUGH_DATA) { - jniThrowException(env, OutOfResourcesException, + jniThrowException(env, MaxImagesAcquiredException, "Too many outstanding images, close existing images" " to be able to acquire more."); } else { -- cgit v1.1