Skip to content

Commit 991c873

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "More DRM/crypto support."
2 parents b52d99e + 0e97fc2 commit 991c873

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

media/java/android/media/MediaCodec.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ protected void finalize() {
8383
public native final void release();
8484

8585
public static int CONFIGURE_FLAG_ENCODE = 1;
86-
public static int CONFIGURE_FLAG_SECURE = 2;
8786

8887
/** Configures a component.
8988
* @param format A map of string/value pairs describing the input format

media/jni/android_media_MediaCodec.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <gui/Surface.h>
3030
#include <gui/SurfaceTextureClient.h>
3131

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

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

388389
if (codec == NULL) {
389390
jniThrowException(env, "java/lang/IllegalStateException", NULL);
390-
return NULL;
391+
return 0;
391392
}
392393

393394
size_t index;

0 commit comments

Comments
 (0)