Commit 3ef83734 by andrewlewis Committed by Oliver Woodman

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
parent 52d95398
...@@ -226,8 +226,8 @@ public final class MediaCodecUtil { ...@@ -226,8 +226,8 @@ public final class MediaCodecUtil {
return false; return false;
} }
// Work around an issue where creating a particular MP3 decoder on some devices on platform API // Work around an issue where querying/creating a particular MP3 decoder on some devices on
// version 16 crashes mediaserver. // platform API version 16 fails.
if (Util.SDK_INT == 16 if (Util.SDK_INT == 16
&& "OMX.qcom.audio.decoder.mp3".equals(name) && "OMX.qcom.audio.decoder.mp3".equals(name)
&& ("dlxu".equals(Util.DEVICE) // HTC Butterfly && ("dlxu".equals(Util.DEVICE) // HTC Butterfly
...@@ -235,6 +235,7 @@ public final class MediaCodecUtil { ...@@ -235,6 +235,7 @@ public final class MediaCodecUtil {
|| "ville".equals(Util.DEVICE) // HTC One S || "ville".equals(Util.DEVICE) // HTC One S
|| "villeplus".equals(Util.DEVICE) || "villeplus".equals(Util.DEVICE)
|| "villec2".equals(Util.DEVICE) || "villec2".equals(Util.DEVICE)
|| Util.DEVICE.startsWith("gee") // LGE Optimus G
|| "C6602".equals(Util.DEVICE) // Sony Xperia Z || "C6602".equals(Util.DEVICE) // Sony Xperia Z
|| "C6603".equals(Util.DEVICE) || "C6603".equals(Util.DEVICE)
|| "C6606".equals(Util.DEVICE) || "C6606".equals(Util.DEVICE)
......
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