[vlc-devel] [PATCH v2 2/4] VLCVideoUIView: signal initial size during the opening
Alexandre Janniaux
ajanni at videolabs.io
Thu Apr 15 14:36:00 UTC 2021
It avoids the display to open with a size bigger than the device's
screen, which could lead to out-of-memory failures.
---
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;
}
--
2.31.1
More information about the vlc-devel
mailing list