[Android] jni: pick a reasonable default resolution

Edward Wang git at videolan.org
Sun Jul 21 20:14:29 CEST 2013


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Jul 21 14:13:47 2013 -0400| [85dd08493f5650a54387e239db3918ab70e9ab9d] | committer: Edward Wang

jni: pick a reasonable default resolution

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

 vlc-android/jni/libvlcjni.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index a651a43..6dbf2db 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -515,6 +515,10 @@ void Java_org_videolan_libvlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz)
         "--no-stats",
         "--no-plugins-cache",
         "--no-drop-late-frames",
+        /* The VLC default is to pick the highest resolution possible
+         * (i.e. 1080p). For mobile, pick a more sane default for slow
+         * mobile data networks and slower hardware. */
+        "--preferred-resolution", "360",
         "--avcodec-fast",
         "--avcodec-threads=0",
         "--subsdec-encoding", subsencodingstr,



More information about the Android mailing list