Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2507a2f authored by Ashok Bhat's avatar Ashok Bhat Committed by David Butcher
Browse files

Fix in MediaMuxer's JNI code



android_media_MediaMuxer_native_setup should return jlong. It was
incorrectly returning jint.

Change-Id: I31a475af0818f4d5dcbb39380b42612188cf3853
Signed-off-by: default avatarAshok Bhat <ashok.bhat@arm.com>
parent 449273e2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -132,7 +132,7 @@ static void android_media_MediaMuxer_writeSampleData(
}

// Constructor counterpart.
static jint android_media_MediaMuxer_native_setup(
static jlong android_media_MediaMuxer_native_setup(
        JNIEnv *env, jclass clazz, jobject fileDescriptor,
        jint format) {
    int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
@@ -142,7 +142,7 @@ static jint android_media_MediaMuxer_native_setup(
        static_cast<MediaMuxer::OutputFormat>(format);
    sp<MediaMuxer> muxer = new MediaMuxer(fd, fileFormat);
    muxer->incStrong(clazz);
    return int(muxer.get());
    return reinterpret_cast<jlong>(muxer.get());
}

static void android_media_MediaMuxer_setOrientationHint(