[Android] [PATCH] Benchmark: force SURFACE_FILL instead of FITT

Duncan McNamara dcn.mcnamara at gmail.com
Mon Aug 13 14:17:36 CEST 2018


FILL distorts the video but doesn't crop,
whereas FITT can. To have screenshot taken
more similar to those of the configuration,
FILL is better suited.
---
 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 70020918f..d42989230 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -396,7 +396,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
 
         if (mIsBenchmark) {
-            mCurrentSize = SURFACE_FIT_SCREEN;
+            mCurrentSize = SURFACE_FILL;
         } else {
             mCurrentSize = mSettings.getInt(PreferencesActivity.VIDEO_RATIO, SURFACE_BEST_FIT);
         }
-- 
2.18.0



More information about the Android mailing list