[Android] VideoHelper: also reset subtitle surface layout

Thomas Guillem git at videolan.org
Thu Apr 11 18:27:40 CEST 2019


vlc-android | branch: 3.1.x | Thomas Guillem <thomas at gllm.fr> | Thu Apr 11 15:48:24 2019 +0200| [02bacfd4c418615ca5c0296d0aa740748367acd4] | committer: Geoffrey Métais

VideoHelper: also reset subtitle surface layout

(cherry picked from commit 16fba4e765e423b1661c071ffa837790862b4aa9)

> https://code.videolan.org/videolan/vlc-android/commit/02bacfd4c418615ca5c0296d0aa740748367acd4
---

 libvlc/src/org/videolan/libvlc/VideoHelper.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvlc/src/org/videolan/libvlc/VideoHelper.java b/libvlc/src/org/videolan/libvlc/VideoHelper.java
index 69b813144..95b2a15a0 100644
--- a/libvlc/src/org/videolan/libvlc/VideoHelper.java
+++ b/libvlc/src/org/videolan/libvlc/VideoHelper.java
@@ -216,6 +216,8 @@ class VideoHelper implements IVLCVout.OnNewVideoLayoutListener {
             lp.width  = ViewGroup.LayoutParams.MATCH_PARENT;
             lp.height = ViewGroup.LayoutParams.MATCH_PARENT;
             mVideoSurface.setLayoutParams(lp);
+            if (mSubtitlesSurface != null)
+                mSubtitlesSurface.setLayoutParams(lp);
             lp = mVideoSurfaceFrame.getLayoutParams();
             lp.width  = ViewGroup.LayoutParams.MATCH_PARENT;
             lp.height = ViewGroup.LayoutParams.MATCH_PARENT;



More information about the Android mailing list