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

Commit 991c8733 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "More DRM/crypto support."

parents b52d99e1 0e97fc24
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -83,7 +83,6 @@ public class MediaCodec
    public native final void release();

    public static int CONFIGURE_FLAG_ENCODE = 1;
    public static int CONFIGURE_FLAG_SECURE = 2;

    /** Configures a component.
     *  @param format A map of string/value pairs describing the input format
+3 −2
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@
#include <gui/Surface.h>
#include <gui/SurfaceTextureClient.h>

#include <media/ICrypto.h>
#include <media/stagefright/MediaCodec.h>
#include <media/stagefright/foundation/ABuffer.h>
#include <media/stagefright/foundation/ADebug.h>
@@ -102,7 +103,7 @@ status_t JMediaCodec::configure(
    if (surfaceTexture != NULL) {
        client = new SurfaceTextureClient(surfaceTexture);
    }
    return mCodec->configure(format, client, flags);
    return mCodec->configure(format, client, NULL /* crypto */, flags);
}

status_t JMediaCodec::start() {
@@ -387,7 +388,7 @@ static jint android_media_MediaCodec_dequeueOutputBuffer(

    if (codec == NULL) {
        jniThrowException(env, "java/lang/IllegalStateException", NULL);
        return NULL;
        return 0;
    }

    size_t index;