Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
035cb096
authored
Dec 31, 2019
by
andrewlewis
Committed by
Oliver Woodman
Jan 02, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Mark final field
PiperOrigin-RevId: 287669425
parent
24a19264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecAdapter.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecAdapter.java
View file @
035cb096
...
@@ -33,7 +33,7 @@ import com.google.android.exoplayer2.util.Assertions;
...
@@ -33,7 +33,7 @@ import com.google.android.exoplayer2.util.Assertions;
*/
*/
@RequiresApi
(
21
)
@RequiresApi
(
21
)
/* package */
final
class
AsynchronousMediaCodecAdapter
implements
MediaCodecAdapter
{
/* package */
final
class
AsynchronousMediaCodecAdapter
implements
MediaCodecAdapter
{
private
MediaCodecAsyncCallback
mediaCodecAsyncCallback
;
private
final
MediaCodecAsyncCallback
mediaCodecAsyncCallback
;
private
final
Handler
handler
;
private
final
Handler
handler
;
private
final
MediaCodec
codec
;
private
final
MediaCodec
codec
;
@Nullable
private
IllegalStateException
internalException
;
@Nullable
private
IllegalStateException
internalException
;
...
@@ -51,7 +51,7 @@ import com.google.android.exoplayer2.util.Assertions;
...
@@ -51,7 +51,7 @@ import com.google.android.exoplayer2.util.Assertions;
@VisibleForTesting
@VisibleForTesting
/* package */
AsynchronousMediaCodecAdapter
(
MediaCodec
codec
,
Looper
looper
)
{
/* package */
AsynchronousMediaCodecAdapter
(
MediaCodec
codec
,
Looper
looper
)
{
this
.
mediaCodecAsyncCallback
=
new
MediaCodecAsyncCallback
();
mediaCodecAsyncCallback
=
new
MediaCodecAsyncCallback
();
handler
=
new
Handler
(
looper
);
handler
=
new
Handler
(
looper
);
this
.
codec
=
codec
;
this
.
codec
=
codec
;
this
.
codec
.
setCallback
(
mediaCodecAsyncCallback
);
this
.
codec
.
setCallback
(
mediaCodecAsyncCallback
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment