[Android] [PATCH] enable spdif passthrough with AudioTrack
Thomas Guillem
thomas at gllm.fr
Tue Mar 10 18:58:41 CET 2015
---
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 41b229b..fbfa2bc 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 */
--
2.1.3
More information about the Android
mailing list