[vlc-devel] [PATCH v2 3/4] VLCOpenGLES2VideoView: enforce initial frame size

Alexandre Janniaux ajanni at videolabs.io
Thu Apr 15 14:36:01 UTC 2021


The UIView should have a well-defined size from the start.
---
 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)
-- 
2.31.1



More information about the vlc-devel mailing list