[vlc-commits] VLCOpenGLES2VideoView: enforce initial frame size
Alexandre Janniaux
git at videolan.org
Tue Apr 20 10:31:35 UTC 2021
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Feb 18 15:01:12 2021 +0100| [e952d4e4186118d62cc490a8a59a612a4fbd973d] | committer: Alexandre Janniaux
VLCOpenGLES2VideoView: enforce initial frame size
The UIView should have a well-defined size from the start.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e952d4e4186118d62cc490a8a59a612a4fbd973d
---
modules/video_output/apple/VLCOpenGLES2VideoView.m | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/video_output/apple/VLCOpenGLES2VideoView.m b/modules/video_output/apple/VLCOpenGLES2VideoView.m
index 0d617d30b6..fb452bba81 100644
--- a/modules/video_output/apple/VLCOpenGLES2VideoView.m
+++ b/modules/video_output/apple/VLCOpenGLES2VideoView.m
@@ -470,8 +470,7 @@ static int Open(vlc_gl_t *gl, unsigned width, unsigned height)
/* setup the actual OpenGL ES view */
dispatch_sync(dispatch_get_main_queue(), ^{
gl->sys = (__bridge_retained void*)[[VLCOpenGLES2VideoView alloc]
- // TODO better rect
- initWithFrame:CGRectMake(0.,0.,320.,240.) gl:gl];
+ initWithFrame:CGRectMake(0.,0.,width,height) gl:gl];
});
if (gl->sys == NULL)
More information about the vlc-commits
mailing list