[Android] VideoHelper: also reset subtitle surface layout
Thomas Guillem
git at videolan.org
Thu Apr 11 15:48:50 CEST 2019
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Apr 11 15:48:24 2019 +0200| [16fba4e765e423b1661c071ffa837790862b4aa9] | committer: Thomas Guillem
VideoHelper: also reset subtitle surface layout
> https://code.videolan.org/videolan/vlc-android/commit/16fba4e765e423b1661c071ffa837790862b4aa9
---
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