Skip to content

Commit

Permalink
Enable setOutputSurface workaround for Xiaomi Mi Box S
Browse files Browse the repository at this point in the history
Reported by #8329.

PiperOrigin-RevId: 350547523
  • Loading branch information
krocard authored and icbaker committed Jan 8, 2021
1 parent a7cb6a0 commit 6dec832
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1584,16 +1584,18 @@ public CodecMaxValues(int width, int height, int inputSize) {

private static boolean evaluateDeviceNeedsSetOutputSurfaceWorkaround() {
if (Util.SDK_INT <= 28) {
// Workaround for MiTV devices which have been observed broken up to API 28.
// Workaround for MiTV and MiBox devices which have been observed broken up to API 28.
// https://github.com/google/ExoPlayer/issues/5169,
// https://github.com/google/ExoPlayer/issues/6899.
// https://github.com/google/ExoPlayer/issues/8014.
// https://github.com/google/ExoPlayer/issues/8329.
switch (Util.DEVICE) {
case "dangal":
case "dangalUHD":
case "dangalFHD":
case "magnolia":
case "machuca":
case "oneday":
return true;
default:
break; // Do nothing.
Expand Down

0 comments on commit 6dec832

Please sign in to comment.