diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-09-23 15:17:39 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-09-23 15:17:39 -0700 |
commit | a52b4d764ebd79b29eac296a5c3a629cff1990c4 (patch) | |
tree | 2cc5354e0951ad3896a5b946b2f2449b13f56931 /media/jni | |
parent | de0dfb7b65a02d4dd74c271b558adee0973fc267 (diff) | |
download | frameworks_base-a52b4d764ebd79b29eac296a5c3a629cff1990c4.zip frameworks_base-a52b4d764ebd79b29eac296a5c3a629cff1990c4.tar.gz frameworks_base-a52b4d764ebd79b29eac296a5c3a629cff1990c4.tar.bz2 |
Fix broken build.
I -did- run it... why did this later break on me?!?
Change-Id: I70db0279f9a1b499496f9808525d2b112495d6c7
Diffstat (limited to 'media/jni')
-rw-r--r-- | media/jni/android_media_MediaMetadataRetriever.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/jni/android_media_MediaMetadataRetriever.cpp b/media/jni/android_media_MediaMetadataRetriever.cpp index 49f8cdd..3e9ba33 100644 --- a/media/jni/android_media_MediaMetadataRetriever.cpp +++ b/media/jni/android_media_MediaMetadataRetriever.cpp @@ -196,7 +196,7 @@ static jobject android_media_MediaMetadataRetriever_captureFrame(JNIEnv *env, jo // Since internally SkBitmap uses reference count to manage the reference to // its pixels, it is important that the pixels (along with SkBitmap) be // available after creating the Bitmap is returned to Java app. - return env->NewObject(fields.bitmapClazz, fields.bitmapConstructor, (int) bitmap, true, NULL); + return env->NewObject(fields.bitmapClazz, fields.bitmapConstructor, (int) bitmap, true, NULL, -1); } static jbyteArray android_media_MediaMetadataRetriever_extractAlbumArt(JNIEnv *env, jobject thiz) @@ -293,7 +293,7 @@ static void android_media_MediaMetadataRetriever_native_init(JNIEnv *env) return; } - fields.bitmapConstructor = env->GetMethodID(fields.bitmapClazz, "<init>", "(IZ[B)V"); + fields.bitmapConstructor = env->GetMethodID(fields.bitmapClazz, "<init>", "(IZ[BI)V"); if (fields.bitmapConstructor == NULL) { jniThrowException(env, "java/lang/RuntimeException", "Can't find Bitmap constructor"); return; |