Merge pull request #3440 from yqritc/fix-bravia
Skip using MediaCodec.setOutputSurface on Bravia
This commit is contained in:
commit
73e96be85c
@ -1071,11 +1071,14 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||
* If true is returned then we fall back to releasing and re-instantiating the codec instead.
|
||||
*/
|
||||
private static boolean codecNeedsSetOutputSurfaceWorkaround(String name) {
|
||||
// Work around https://github.com/google/ExoPlayer/issues/3236 and
|
||||
// https://github.com/google/ExoPlayer/issues/3355.
|
||||
// Work around https://github.com/google/ExoPlayer/issues/3236,
|
||||
// https://github.com/google/ExoPlayer/issues/3355 and
|
||||
// https://github.com/google/ExoPlayer/issues/3439.
|
||||
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) || "SVP-DTV15".equals(Util.DEVICE)
|
||||
|| "BRAVIA_ATV2".equals(Util.DEVICE))
|
||||
&& "OMX.MTK.VIDEO.DECODER.AVC".equals(name));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user