Commit 5faa662e by olly Committed by Oliver Woodman

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
parent ed18be4e
...@@ -1340,7 +1340,16 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer { ...@@ -1340,7 +1340,16 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
deviceNeedsSetOutputSurfaceWorkaround = true; deviceNeedsSetOutputSurfaceWorkaround = true;
break; break;
default: default:
// Workaround not required. // Do nothing.
break;
}
switch (Util.MODEL) {
case "AFTA":
case "AFTN":
deviceNeedsSetOutputSurfaceWorkaround = true;
break;
default:
// Do nothing.
break; break;
} }
evaluatedDeviceNeedsSetOutputSurfaceWorkaround = true; evaluatedDeviceNeedsSetOutputSurfaceWorkaround = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment