[Android] [PATCH 2/2] libvlcjni: print std out/err in debug mode
Thomas Guillem
thomas at gllm.fr
Thu Apr 16 17:15:00 CEST 2015
---
libvlc/jni/libvlcjni.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libvlc/jni/libvlcjni.c b/libvlc/jni/libvlcjni.c
index 3b8fe8e..ea4293c 100644
--- a/libvlc/jni/libvlcjni.c
+++ b/libvlc/jni/libvlcjni.c
@@ -464,7 +464,7 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
methodId = (*env)->GetMethodID(env, cls, "isHdmiAudioEnabled", "()Z");
bool hdmi_audio = (*env)->CallBooleanMethod(env, thiz, methodId);
-#define MAX_ARGV 22
+#define MAX_ARGV 23
const char *argv[MAX_ARGV];
int argc = 0;
@@ -509,6 +509,9 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
argv[argc++] = "8"; // 7.1 maximum
}
argv[argc++] = b_verbose ? "-vvv" : "-vv";
+#ifndef NDEBUG
+ argv[argc++] = "--androidlog-std";
+#endif
/* Reconnect on lost HTTP streams, e.g. network change */
if (enable_http_reconnect)
--
2.1.3
More information about the Android
mailing list