[vlc-commits] caopengllayer: fix resize handling
Marvin Scholz
git at videolan.org
Tue Mar 31 15:33:03 CEST 2020
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Tue Mar 31 15:32:23 2020 +0200| [11591b11c06938f21b7b5fcfa24d9da37768f911] | committer: Marvin Scholz
caopengllayer: fix resize handling
use layoutSublayers instead of resizeWithOldSuperlayerSize: as the
resizeWithOldSuperlayerSize: method is not called when compiled with
10.13 SDK, possibly because then the layer is not in a full layer tree
so has no superlayer eventually. So using layoutSublayers feels more
correct to be called when a layout change occurs.
Fix #24559
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=11591b11c06938f21b7b5fcfa24d9da37768f911
---
modules/video_output/caopengllayer.m | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index bf16358591..6a360d6d40 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -803,9 +803,9 @@ shouldInheritContentsScale:(CGFloat)newScale
}
}
-- (void)resizeWithOldSuperlayerSize:(CGSize)size
+- (void)layoutSublayers
{
- [super resizeWithOldSuperlayerSize:size];
+ [super layoutSublayers];
if (self.asynchronous) {
// During live resize, the size is updated in the
More information about the vlc-commits
mailing list