Skip to content

Commit

Permalink
Blacklist Huawei P9 Lite from setOutputSurface
Browse files Browse the repository at this point in the history
Issue: #4084

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=191716636
  • Loading branch information
ojw28 committed Apr 7, 2018
1 parent 6ea79c8 commit e26cad1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
`BaseRenderer.onStreamChanged`.
* HLS: Fix playlist loading error propagation when the current selection does
not include all of the playlist's variants.
* Fix IllegalStateException when switching surface on Huawei P9 Lite
([#4084](https://github.com/google/ExoPlayer/issues/4084)).

### 2.7.3 ###

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1142,8 +1142,9 @@ private static boolean codecNeedsSetOutputSurfaceWorkaround(String name) {
// https://github.com/google/ExoPlayer/issues/3355,
// https://github.com/google/ExoPlayer/issues/3439,
// https://github.com/google/ExoPlayer/issues/3724,
// https://github.com/google/ExoPlayer/issues/3835 and
// https://github.com/google/ExoPlayer/issues/4006.
// https://github.com/google/ExoPlayer/issues/3835,
// https://github.com/google/ExoPlayer/issues/4006 and
// https://github.com/google/ExoPlayer/issues/4084.
return (("deb".equals(Util.DEVICE) // Nexus 7 (2013)
|| "flo".equals(Util.DEVICE) // Nexus 7 (2013)
|| "mido".equals(Util.DEVICE) // Redmi Note 4
Expand All @@ -1159,7 +1160,9 @@ private static boolean codecNeedsSetOutputSurfaceWorkaround(String name) {
&& "OMX.MTK.VIDEO.DECODER.AVC".equals(name))
|| (("ALE-L21".equals(Util.MODEL) // Huawei P8 Lite
|| "CAM-L21".equals(Util.MODEL)) // Huawei Y6II
&& "OMX.k3.video.decoder.avc".equals(name));
&& "OMX.k3.video.decoder.avc".equals(name))
|| (("HUAWEI VNS-L21".equals(Util.MODEL)) // Huawei P9 Lite
&& "OMX.IMG.MSVDX.Decoder.AVC".equals(name));
}

protected static final class CodecMaxValues {
Expand Down

0 comments on commit e26cad1

Please sign in to comment.