[Android] enable spdif passthrough with AudioTrack

Thomas Guillem git at videolan.org
Wed Mar 11 15:23:28 CET 2015


vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 10 11:54:45 2015 +0100| [76e5af56753429f545c49cbd01e2742b0f79189d] | committer: Thomas Guillem

enable spdif passthrough with AudioTrack

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

 compile-libvlc.sh      |    1 -
 libvlc/jni/libvlcjni.c |    3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 7f174ff..3b74321 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -206,7 +206,6 @@ VLC_MODULE_BLACKLIST="
     remoteosd
     magnify
     gradient
-    .*tospdif
     dtstofloat32
     logger
     visual
diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index 083162b..698eaac 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -434,7 +434,7 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
         (*env)->ReleaseStringUTFChars(env, cachePath, cache_path);
     }
 
-#define MAX_ARGV 19
+#define MAX_ARGV 20
     const char *argv[MAX_ARGV];
     int argc = 0;
 
@@ -473,6 +473,7 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
         argv[argc++] = "--no-omxil-dr";
 #endif
     }
+    argv[argc++] = "--spdif";
     argv[argc++] = b_verbose ? "-vvv" : "-vv";
 
     /* Reconnect on lost HTTP streams, e.g. network change */



More information about the Android mailing list