mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Apply setOutputSurfaceWorkaround to required FireOS devices
Amazon like to use Device.MODEL, so key on that instead for these workarounds. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=206917935
This commit is contained in:
parent
ed18be4eea
commit
5faa662e43
1 changed files with 10 additions and 1 deletions
|
|
@ -1340,7 +1340,16 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
|||
deviceNeedsSetOutputSurfaceWorkaround = true;
|
||||
break;
|
||||
default:
|
||||
// Workaround not required.
|
||||
// Do nothing.
|
||||
break;
|
||||
}
|
||||
switch (Util.MODEL) {
|
||||
case "AFTA":
|
||||
case "AFTN":
|
||||
deviceNeedsSetOutputSurfaceWorkaround = true;
|
||||
break;
|
||||
default:
|
||||
// Do nothing.
|
||||
break;
|
||||
}
|
||||
evaluatedDeviceNeedsSetOutputSurfaceWorkaround = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue