Skip to content
Snippets Groups Projects
Commit e952d4e4 authored by Alexandre Janniaux's avatar Alexandre Janniaux
Browse files

VLCOpenGLES2VideoView: enforce initial frame size

The UIView should have a well-defined size from the start.
parent 7f86b3a9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment