mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add additional device to output surface workaround
Issue: #4468 PiperOrigin-RevId: 231759438
This commit is contained in:
parent
7a819cba65
commit
ba2ef0be94
1 changed files with 3 additions and 2 deletions
|
|
@ -1319,8 +1319,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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue