From 3ef837341ef24b6cc7162b4f5e7e325bdd11f40c Mon Sep 17 00:00:00 2001 From: andrewlewis Date: Sun, 7 Aug 2016 23:59:23 -0700 Subject: [PATCH] Don't use OMX.qcom.audio.decoder.mp3 on LGE Optimus API 16. Issue: #1714 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=129600348 --- .../google/android/exoplayer2/mediacodec/MediaCodecUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/library/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java b/library/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java index 0a5dc055ba..502b0789e5 100644 --- a/library/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java +++ b/library/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecUtil.java @@ -226,8 +226,8 @@ public final class MediaCodecUtil { return false; } - // Work around an issue where creating a particular MP3 decoder on some devices on platform API - // version 16 crashes mediaserver. + // Work around an issue where querying/creating a particular MP3 decoder on some devices on + // platform API version 16 fails. if (Util.SDK_INT == 16 && "OMX.qcom.audio.decoder.mp3".equals(name) && ("dlxu".equals(Util.DEVICE) // HTC Butterfly @@ -235,6 +235,7 @@ public final class MediaCodecUtil { || "ville".equals(Util.DEVICE) // HTC One S || "villeplus".equals(Util.DEVICE) || "villec2".equals(Util.DEVICE) + || Util.DEVICE.startsWith("gee") // LGE Optimus G || "C6602".equals(Util.DEVICE) // Sony Xperia Z || "C6603".equals(Util.DEVICE) || "C6606".equals(Util.DEVICE)