From 88b77412286115b158d906369b62515d773f21bc Mon Sep 17 00:00:00 2001 From: James Dong Date: Tue, 14 Dec 2010 22:09:24 -0800 Subject: [PATCH] Fix media metadata retriever JNI due to a change to the private native Bitmap constructor signature Change-Id: I48c94b7a77a717c15fac548c7068a8a3e62c79fb --- media/jni/android_media_MediaMetadataRetriever.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp index 5904bfe5eee7f..9662817a83dcd 100644 --- a/media/jni/android_media_MediaMetadataRetriever.cpp +++ b/media/jni/android_media_MediaMetadataRetriever.cpp @@ -215,7 +215,7 @@ static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env, // its pixels, it is important that the pixels (along with SkBitmap) be // available after creating the Bitmap is returned to Java app. jobject jSrcBitmap = env->NewObject(fields.bitmapClazz, - fields.bitmapConstructor, (int) bitmap, true, NULL, -1); + fields.bitmapConstructor, (int) bitmap, NULL, true, NULL, -1); LOGV("Return a new bitmap constructed with the rotation matrix"); return env->CallStaticObjectMethod( @@ -321,7 +321,7 @@ static void android_media_MediaMetadataRetriever_native_init(JNIEnv *env) return; } - fields.bitmapConstructor = env->GetMethodID(fields.bitmapClazz, "", "(IZ[BI)V"); + fields.bitmapConstructor = env->GetMethodID(fields.bitmapClazz, "", "(I[BZ[BI)V"); if (fields.bitmapConstructor == NULL) { jniThrowException(env, "java/lang/RuntimeException", "Can't find Bitmap constructor"); return;