[vlc-commits] [Git][videolan/vlc][master] macosx: avoid nil-anchor crash in classic video layout

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Apr 17 22:23:17 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
68aa222e by Felix Paul Kühne at 2026-04-18T00:04:04+02:00
macosx: avoid nil-anchor crash in classic video layout

The classic-layout XIB does not wire centralControlsStackView, so
applying the audio decorative view's cover-art constraints builds a
constraint from a nil anchor and crashes on array construction when
an audio-only item starts. Skip the routine in classic mode, matching
setupAudioDecorativeView which already gates related setup on it.

- - - - -


1 changed file:

- modules/gui/macosx/windows/video/VLCMainVideoViewController.m


Changes:

=====================================
modules/gui/macosx/windows/video/VLCMainVideoViewController.m
=====================================
@@ -296,6 +296,9 @@ NSString * const VLCUseClassicVideoPlayerLayoutKey = @"VLCUseClassicVideoPlayerL
 
 - (void)applyAudioDecorativeViewForegroundCoverArtViewConstraints
 {
+    if (self.classic) {
+        return;
+    }
     if (![self.view.subviews containsObject:self.voutContainingView] ||
         ![self.voutContainingView.subviews containsObject:self.audioDecorativeView]) {
         return;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/68aa222ec07fe6838d75f95b0babcfaef279417b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/68aa222ec07fe6838d75f95b0babcfaef279417b
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list