diff --git a/modules/video_output/apple/VLCOpenGLES2VideoView.m b/modules/video_output/apple/VLCOpenGLES2VideoView.m
index 0d617d30b6fe008a56d690b90d25cf781793f93b..fb452bba813905ab22002a184c0c0f288725b8b3 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)