[vlc-commits] fix problem where sometimes VLCOpenGLES2VideoView has a different size than the superview.

Tobias Conradi git at videolan.org
Thu May 14 22:03:00 CEST 2015


vlc | branch: master | Tobias Conradi <videolan at tobias-conradi.de> | Thu May 14 21:38:23 2015 +0200| [974b79d88ec564e86ab4137dd35aec941eca4338] | committer: Felix Paul Kühne

fix problem where sometimes VLCOpenGLES2VideoView has a different size than the superview.

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=974b79d88ec564e86ab4137dd35aec941eca4338
---

 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 5039feb..c81a735 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;



More information about the vlc-commits mailing list