[Android] Fix video aspect ratio restoration
Alexandre Perraud
git at videolan.org
Wed Feb 1 17:05:48 CET 2017
vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Feb 1 16:13:16 2017 +0100| [820794ef5f736ed5a2a08210a192492c9872f3c5] | committer: Alexandre Perraud
Fix video aspect ratio restoration
> https://code.videolan.org/videolan/vlc-android/commit/820794ef5f736ed5a2a08210a192492c9872f3c5
---
vlc-android/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 0ef0fe2..ebd4319 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -482,6 +482,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
getWindowManager().getDefaultDisplay().getMetrics(mScreen);
mSurfaceYDisplayRange = Math.min(mScreen.widthPixels, mScreen.heightPixels);
mSurfaceXDisplayRange = Math.max(mScreen.widthPixels, mScreen.heightPixels);
+ mCurrentSize = mSettings.getInt(PreferencesActivity.VIDEO_RATIO, SURFACE_BEST_FIT);
}
@Override
@@ -2723,7 +2724,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mAdvOptions.setOnClickListener(this);
mLock = (ImageView) findViewById(R.id.lock_overlay_button);
mSize = (ImageView) findViewById(R.id.player_overlay_size);
- mCurrentSize = mSettings.getInt(PreferencesActivity.VIDEO_RATIO, SURFACE_BEST_FIT);
mNavMenu = (ImageView) findViewById(R.id.player_overlay_navmenu);
if (mSettings.getBoolean("enable_seek_buttons", false))
initSeekButton();
More information about the Android
mailing list