From 974b79d88ec564e86ab4137dd35aec941eca4338 Mon Sep 17 00:00:00 2001 From: Tobias Conradi Date: Thu, 14 May 2015 21:38:23 +0200 Subject: [PATCH] fix problem where sometimes VLCOpenGLES2VideoView has a different size than the superview. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Felix Paul Kühne --- modules/video_output/ios2.m | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/video_output/ios2.m b/modules/video_output/ios2.m index 5039febecb..c81a735d32 100644 --- a/modules/video_output/ios2.m +++ b/modules/video_output/ios2.m @@ -148,6 +148,7 @@ static int Open(vlc_object_t *this) /* setup the actual OpenGL ES view */ sys->glESView = [[VLCOpenGLES2VideoView alloc] initWithFrame:[viewContainer bounds]]; + sys->glESView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; if (!sys->glESView) goto bailout;