[vlc-commits] VLCVideoUIView: signal initial size during the opening
Alexandre Janniaux
git at videolan.org
Tue Apr 20 10:31:34 UTC 2021
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Sat Feb 20 10:23:59 2021 +0100| [7f86b3a939d278e3640c4db24f992b3b64d7f133] | committer: Alexandre Janniaux
VLCVideoUIView: signal initial size during the opening
It avoids the display to open with a size bigger than the device's
screen, which could lead to out-of-memory failures.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f86b3a939d278e3640c4db24f992b3b64d7f133
---
modules/video_output/apple/VLCVideoUIView.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/video_output/apple/VLCVideoUIView.m b/modules/video_output/apple/VLCVideoUIView.m
index d5fc143beb..d0abdf2dba 100644
--- a/modules/video_output/apple/VLCVideoUIView.m
+++ b/modules/video_output/apple/VLCVideoUIView.m
@@ -120,6 +120,11 @@
_tapRecognizer = [[UITapGestureRecognizer alloc]
initWithTarget:self action:@selector(tapRecognized:)];
+ CGSize size = _viewContainer.bounds.size;
+ [self reportEvent:^{
+ vout_window_ReportSize(_wnd, size.width, size.height);
+ }];
+
return self;
}
More information about the vlc-commits
mailing list