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
d0b3d1cf
authored
Jan 31, 2019
by
olly
Committed by
Oliver Woodman
Jan 31, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add additional device to output surface workaround
Issue: #4468 PiperOrigin-RevId: 231759438
parent
ef6725bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 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 @
d0b3d1cf
...
@@ -1326,8 +1326,9 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
...
@@ -1326,8 +1326,9 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
}
}
synchronized
(
MediaCodecVideoRenderer
.
class
)
{
synchronized
(
MediaCodecVideoRenderer
.
class
)
{
if
(!
evaluatedDeviceNeedsSetOutputSurfaceWorkaround
)
{
if
(!
evaluatedDeviceNeedsSetOutputSurfaceWorkaround
)
{
if
(
Util
.
SDK_INT
<=
27
&&
"dangal"
.
equals
(
Util
.
DEVICE
))
{
if
(
Util
.
SDK_INT
<=
27
&&
(
"dangal"
.
equals
(
Util
.
DEVICE
)
||
"HWEML"
.
equals
(
Util
.
DEVICE
)))
{
// Dangal is affected on API level 27: https://github.com/google/ExoPlayer/issues/5169.
// A small number of devices are affected on API level 27:
// https://github.com/google/ExoPlayer/issues/5169.
deviceNeedsSetOutputSurfaceWorkaround
=
true
;
deviceNeedsSetOutputSurfaceWorkaround
=
true
;
}
else
if
(
Util
.
SDK_INT
>=
27
)
{
}
else
if
(
Util
.
SDK_INT
>=
27
)
{
// In general, devices running API level 27 or later should be unaffected. Do nothing.
// In general, devices running API level 27 or later should be unaffected. Do nothing.
...
...
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