[vlc-commits] [Git][videolan/vlc][master] macosx: Fix crash when clearing play queue

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jan 15 13:10:42 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
79d46d8d by Dave Nicolson at 2026-01-15T12:52:27+00:00
macosx: Fix crash when clearing play queue
- - - - -


1 changed file:

- modules/gui/macosx/library/media-source/VLCMediaSourceDataSource.m


Changes:

=====================================
modules/gui/macosx/library/media-source/VLCMediaSourceDataSource.m
=====================================
@@ -111,9 +111,11 @@ NSString * const VLCMediaSourceDataSourceNodeChanged = @"VLCMediaSourceDataSourc
             [self.displayedMediaSource generateChildNodesForDirectoryNode:inputNode
                                                                   withUrl:nodeUrl];
         if (error) {
-            NSAlert * const alert = [NSAlert alertWithError:error];
-            alert.alertStyle = NSAlertStyleCritical;
-            [alert runModal];
+            dispatch_async(dispatch_get_main_queue(), ^{
+                NSAlert * const alert = [NSAlert alertWithError:error];
+                alert.alertStyle = NSAlertStyleCritical;
+                [alert runModal];
+            });
             return;
         }
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/79d46d8db09ac4c36a496eba2d27a2ede4ec21c8

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


VideoLAN code repository instance


More information about the vlc-commits mailing list