[Android] [PATCH 02/10] lua: pick a more reasonable default resolution

Edward Wang edward.c.wang at compdigitec.com
Wed Aug 29 04:21:50 CEST 2012


---
 vlc-android/jni/libvlcjni.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/vlc-android/jni/libvlcjni.c b/vlc-android/jni/libvlcjni.c
index fd416cb..66d5e71 100644
--- a/vlc-android/jni/libvlcjni.c
+++ b/vlc-android/jni/libvlcjni.c
@@ -426,6 +426,11 @@ void Java_org_videolan_vlc_LibVLC_nativeInit(JNIEnv *env, jobject thiz, jboolean
         "--avcodec-fast",
         "--playlist-tree", /* This is needed for the media list handling,
                               it doesn't work well otherwise. */
+        /* Default in VLC is to pick the highest resolution possible
+         * (i.e. 1080p). However, this is bad as mobile data networks
+         * are often weaker and slower, in addition to slower hardware
+         * on mobile devices - so pick a more sane default. */
+        "--preferred-resolution", "360",
         enable_time_stretch ? "--audio-time-stretch" : "--no-audio-time-stretch",
         use_opensles ? "--aout=opensles" : "--aout=android_audiotrack",
     };
-- 
1.7.5.4



More information about the Android mailing list