[Android] VideoPlayer: fix fit_screen when no video track

Duncan McNamara git at videolan.org
Thu May 11 16:53:37 CEST 2017


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Thu May 11 16:25:37 2017 +0200| [3759b70d7fdfd65f9e632738ab023fca3a9b5210] | committer: Geoffrey Métais

VideoPlayer: fix fit_screen when no video track

Signed-off-by: Geoffrey Métais <geoffrey.metais at gmail.com>

> https://code.videolan.org/videolan/vlc-android/commit/3759b70d7fdfd65f9e632738ab023fca3a9b5210
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 1 +
 1 file changed, 1 insertion(+)

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 f68752b..dcb5aed 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1642,6 +1642,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             case MediaPlayer.Event.ESSelected:
                 if (event.getEsChangedType() == Media.VideoTrack.Type.Video) {
                     Media.VideoTrack vt = mService.getCurrentVideoTrack();
+                    changeSurfaceLayout();
                     if (vt != null)
                         mFov = vt.projection == Media.VideoTrack.Projection.Rectangular ? 0f : DEFAULT_FOV;
                 }



More information about the Android mailing list