[vlc-commits] [Git][videolan/vlc][master] vout/sample buffer display: fix autoresizing mask for the video image layer

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Jul 7 18:25:01 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
1729b741 by Felix Paul Kühne at 2026-07-07T17:51:33+00:00
vout/sample buffer display: fix autoresizing mask for the video image layer

Resizing is done according to core request and not by UIKit / AppKit

This solves issues in client apps if you resize the vout or move it
between view controllers where the SPU will stay correctly sized
(as its view fills the parent view) while the video image will not be
placed correctly anymore.

- - - - -


1 changed file:

- modules/video_output/apple/VLCSampleBufferDisplay.m


Changes:

=====================================
modules/video_output/apple/VLCSampleBufferDisplay.m
=====================================
@@ -573,10 +573,10 @@ static void DeletePipController( pip_controller_t * pipcontroller );
     if (!self)
         return nil;
 #if TARGET_OS_OSX
-    self.autoresizingMask = NSViewWidthSizable | NSViewHeightSizable;
+    self.autoresizingMask = NSViewNotSizable;
     self.wantsLayer = YES;
 #else
-    self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
+    self.autoresizingMask = UIViewAutoresizingNone;
 #endif
     return self;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1729b741161ebb2876d9e9d026b933d0f65b5170

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1729b741161ebb2876d9e9d026b933d0f65b5170
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list