add bravia workaround to skip using setOutputSurface in MediaCodec

This commit is contained in:
yqritc 2017-11-08 11:01:47 +09:00 committed by Oliver Woodman
parent 4ac8680b94
commit 2c8c14d647

View file

@ -1075,7 +1075,8 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
// https://github.com/google/ExoPlayer/issues/3355.
return (("deb".equals(Util.DEVICE) || "flo".equals(Util.DEVICE))
&& "OMX.qcom.video.decoder.avc".equals(name))
|| ("tcl_eu".equals(Util.DEVICE) && "OMX.MTK.VIDEO.DECODER.AVC".equals(name));
|| (("tcl_eu".equals(Util.DEVICE) || Util.MODEL.startsWith("BRAVIA"))
&& "OMX.MTK.VIDEO.DECODER.AVC".equals(name));
}
/**