[Android] HWDecUtil: don't use OMX on Amazon devices

Thomas Guillem git at videolan.org
Mon Apr 4 18:52:40 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Apr  4 18:52:20 2016 +0200| [20d9fc664e43fd8d6e121b32fada7f60992bc772] | committer: Thomas Guillem

HWDecUtil: don't use OMX on Amazon devices

> https://code.videolan.org/videolan/vlc-android/commit/20d9fc664e43fd8d6e121b32fada7f60992bc772
---

 libvlc/src/org/videolan/libvlc/util/HWDecoderUtil.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/util/HWDecoderUtil.java b/libvlc/src/org/videolan/libvlc/util/HWDecoderUtil.java
index d00b0f5..f6f1141 100644
--- a/libvlc/src/org/videolan/libvlc/util/HWDecoderUtil.java
+++ b/libvlc/src/org/videolan/libvlc/util/HWDecoderUtil.java
@@ -79,6 +79,11 @@ public class HWDecoderUtil {
         new DecoderBySOC("ro.board.platform", "msm7627", Decoder.NONE), // QCOM S1
 
         /*
+         * Even if omap, old Amazon devices don't work with OMX, so either use MediaCodec or SW.
+         */
+        new DecoderBySOC("ro.product.brand", "Amazon", Decoder.MEDIACODEC),
+
+        /*
          * Devices working on OMX
          */
         new DecoderBySOC("ro.board.platform", "omap3", Decoder.OMX), // Omap 3



More information about the Android mailing list