Skip to content

Commit

Permalink
Don't use OMX.qcom.audio.decoder.mp3 on LGE Optimus API 16.
Browse files Browse the repository at this point in the history
Issue: #1714

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129600348
  • Loading branch information
andrewlewis authored and ojw28 committed Aug 8, 2016
1 parent cc6d3a0 commit d90470d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,16 @@ private static boolean isCodecUsableDecoder(MediaCodecInfo info, String name,
return false;
}

// Work around an issue where creating a particular MP3 decoder on some devices on platform API
// version 16 crashes mediaserver.
if (Util.SDK_INT == 16
// 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 && Util.DEVICE != null
&& "OMX.qcom.audio.decoder.mp3".equals(name)
&& ("dlxu".equals(Util.DEVICE) // HTC Butterfly
|| "protou".equals(Util.DEVICE) // HTC Desire X
|| "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)
Expand Down

0 comments on commit d90470d

Please sign in to comment.