Skip to content
Snippets Groups Projects
Commit 0e97fc24 authored by Andreas Huber's avatar Andreas Huber
Browse files

More DRM/crypto support.

related-to-bug: 6275919
Change-Id: I9179c03f1f91f939afcb3b1c6514a200bf586c93
parent 4a727e34
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment