Commit db882226 by Dmitry Kostyrev

Opt out of using DummySurface on Asus Zenfone Go

Issue: #4460
parent a916ad6a
...@@ -1178,9 +1178,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer { ...@@ -1178,9 +1178,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
* <p>If true is returned then use of {@link DummySurface} is disabled. * <p>If true is returned then use of {@link DummySurface} is disabled.
*/ */
private static boolean codecNeedsDummySurfaceWorkaround(String name) { private static boolean codecNeedsDummySurfaceWorkaround(String name) {
// Work around https://github.com/google/ExoPlayer/issues/4419. // Work around https://github.com/google/ExoPlayer/issues/4419,
return ("Amazon".equals(Util.MANUFACTURER) && "AFTN".equals(Util.MODEL)) // FireTV 4K // https://github.com/google/ExoPlayer/issues/4460.
&& "OMX.amlogic.avc.decoder.awesome".equals(name); return (("Amazon".equals(Util.MANUFACTURER) && "AFTN".equals(Util.MODEL)) // FireTV 4K
&& "OMX.amlogic.avc.decoder.awesome".equals(name))
|| (("asus".equals(Util.MANUFACTURER) && "ZB500KL".equals(Util.MODEL)) // Asus Zenfone Go
&& "OMX.qcom.video.decoder.avc".equals(name));
} }
/** /**
......
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