[Android] Try mediacodec before iomx when hw decoding is enabled

Martin Storsjö git at videolan.org
Mon Oct 8 18:30:44 CEST 2012


vlc-ports/android | branch: master | Martin Storsjö <martin at martin.st> | Mon Oct  8 19:29:18 2012 +0300| [678c8ce5e81f055ffccca09c7133780a5ab4b713] | committer: Martin Storsjö

Try mediacodec before iomx when hw decoding is enabled

This new API should work just as well as iomx (especially when
the code gets more testing and mature), so try this one first -
the code falls back cleanly to iomx on older android versions.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=678c8ce5e81f055ffccca09c7133780a5ab4b713
---

 vlc-android/jni/libvlcjni.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index 42ca612..3476b71 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -162,7 +162,7 @@ libvlc_media_t *new_media(jlong instance, JNIEnv *env, jobject thiz, jstring fil
              */
             libvlc_media_add_option(p_md, ":file-caching=1500");
             libvlc_media_add_option(p_md, ":network-caching=1500");
-            libvlc_media_add_option(p_md, ":codec=iomx,all");
+            libvlc_media_add_option(p_md, ":codec=mediacodec,iomx,all");
         }
         if (noVideo)
             libvlc_media_add_option(p_md, ":no-video");



More information about the Android mailing list