mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
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
This commit is contained in:
parent
52d9539878
commit
3ef837341e
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||||
|| "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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue