diff options
-rw-r--r-- | media/java/android/media/MediaHTTPConnection.java | 2 | ||||
-rw-r--r-- | media/jni/android_media_MediaHTTPConnection.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/media/java/android/media/MediaHTTPConnection.java b/media/java/android/media/MediaHTTPConnection.java index 67680a8..eb91668 100644 --- a/media/java/android/media/MediaHTTPConnection.java +++ b/media/java/android/media/MediaHTTPConnection.java @@ -269,6 +269,6 @@ public class MediaHTTPConnection extends IMediaHTTPConnection.Stub { native_init(); } - private int mNativeContext; + private long mNativeContext; } diff --git a/media/jni/android_media_MediaHTTPConnection.cpp b/media/jni/android_media_MediaHTTPConnection.cpp index c48af11..da3f74d 100644 --- a/media/jni/android_media_MediaHTTPConnection.cpp +++ b/media/jni/android_media_MediaHTTPConnection.cpp @@ -84,7 +84,7 @@ static fields_t gFields; static sp<JMediaHTTPConnection> setObject( JNIEnv *env, jobject thiz, const sp<JMediaHTTPConnection> &conn) { sp<JMediaHTTPConnection> old = - (JMediaHTTPConnection *)env->GetIntField(thiz, gFields.context); + (JMediaHTTPConnection *)env->GetLongField(thiz, gFields.context); if (conn != NULL) { conn->incStrong(thiz); @@ -92,13 +92,13 @@ static sp<JMediaHTTPConnection> setObject( if (old != NULL) { old->decStrong(thiz); } - env->SetIntField(thiz, gFields.context, (int)conn.get()); + env->SetLongField(thiz, gFields.context, (jlong)conn.get()); return old; } static sp<JMediaHTTPConnection> getObject(JNIEnv *env, jobject thiz) { - return (JMediaHTTPConnection *)env->GetIntField(thiz, gFields.context); + return (JMediaHTTPConnection *)env->GetLongField(thiz, gFields.context); } static void android_media_MediaHTTPConnection_native_init(JNIEnv *env) { |