Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
0e97fc24
Commit
0e97fc24
authored
12 years ago
by
Andreas Huber
Browse files
Options
Downloads
Patches
Plain Diff
More DRM/crypto support.
related-to-bug: 6275919 Change-Id: I9179c03f1f91f939afcb3b1c6514a200bf586c93
parent
4a727e34
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
media/java/android/media/MediaCodec.java
+0
-1
0 additions, 1 deletion
media/java/android/media/MediaCodec.java
media/jni/android_media_MediaCodec.cpp
+3
-2
3 additions, 2 deletions
media/jni/android_media_MediaCodec.cpp
with
3 additions
and
3 deletions
media/java/android/media/MediaCodec.java
+
0
−
1
View file @
0e97fc24
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
media/jni/android_media_MediaCodec.cpp
+
3
−
2
View file @
0e97fc24
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment