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
db882226
authored
Jul 02, 2018
by
Dmitry Kostyrev
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Opt out of using DummySurface on Asus Zenfone Go
Issue: #4460
parent
a916ad6a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/video/MediaCodecVideoRenderer.java
View file @
db882226
...
@@ -1178,9 +1178,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -1178,9 +1178,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* <p>If true is returned then use of {@link DummySurface} is disabled.
* <p>If true is returned then use of {@link DummySurface} is disabled.
*/
*/
private
static
boolean
codecNeedsDummySurfaceWorkaround
(
String
name
)
{
private
static
boolean
codecNeedsDummySurfaceWorkaround
(
String
name
)
{
// Work around https://github.com/google/ExoPlayer/issues/4419.
// Work around https://github.com/google/ExoPlayer/issues/4419,
return
(
"Amazon"
.
equals
(
Util
.
MANUFACTURER
)
&&
"AFTN"
.
equals
(
Util
.
MODEL
))
// FireTV 4K
// https://github.com/google/ExoPlayer/issues/4460.
&&
"OMX.amlogic.avc.decoder.awesome"
.
equals
(
name
);
return
((
"Amazon"
.
equals
(
Util
.
MANUFACTURER
)
&&
"AFTN"
.
equals
(
Util
.
MODEL
))
// FireTV 4K
&&
"OMX.amlogic.avc.decoder.awesome"
.
equals
(
name
))
||
((
"asus"
.
equals
(
Util
.
MANUFACTURER
)
&&
"ZB500KL"
.
equals
(
Util
.
MODEL
))
// Asus Zenfone Go
&&
"OMX.qcom.video.decoder.avc"
.
equals
(
name
));
}
}
/**
/**
...
...
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