[Android] [PATCH] HW Decoders: fix some tegra3 forced to use iomx

Thomas Guillem tom at gllm.fr
Wed Oct 15 10:32:49 CEST 2014


"ro.board.platform=tegra" can correspond to tegra2 and some tegra3 devices (HTC
OneX). Both tegra2 and tegra3 works with mediacodec and iomx, so use ALL
decoders for these devices (default behavior).
---
 vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java b/vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java
index 145a587..bb07dab 100644
--- a/vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java
+++ b/vlc-android/src/org/videolan/libvlc/HWDecoderUtil.java
@@ -60,7 +60,6 @@ public class HWDecoderUtil {
         new DecoderBySOC ("ro.board.platform", Decoder.OMX, new  String[] {
                 "omap3",            // Omap 3
                 "rockchip", "rk29", // Rockchip RK29
-                "tegra",            // Tegra 2
                 "msm7630",          // QCOM S2
                 "s5pc",             // Exynos 3
                 "montblanc",        // Montblanc
@@ -74,6 +73,8 @@ public class HWDecoderUtil {
          */
         new DecoderBySOC ("ro.board.platform", Decoder.ALL, new  String[] {
                 "omap4",            // Omap 4
+                "tegra",            // Tegra 2 & 3
+                "tegra3",           // Tegra 3
                 "msm8660",          // QCOM S3
                 "exynos4",          // Exynos 4 (Samsung Galaxy S2/S3)
                 "exynos5",          // Exynos 5 (Samsung Galaxy S4)
-- 
2.1.0



More information about the Android mailing list