[vlc-commits] [Git][videolan/vlc][master] macosx: Fix crash on notification handler in playlist view controller caused...
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Sat Aug 30 13:47:36 UTC 2025
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
3119e697 by Claudio Cambra at 2025-08-30T13:24:13+00:00
macosx: Fix crash on notification handler in playlist view controller caused by wrong object expectation
Signed-off-by: Claudio Cambra <developer at claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/playlist-library/VLCLibraryPlaylistViewController.m
Changes:
=====================================
modules/gui/macosx/library/playlist-library/VLCLibraryPlaylistViewController.m
=====================================
@@ -294,9 +294,7 @@
- (void)libraryModelUpdated:(NSNotification *)notification
{
- NSParameterAssert(notification);
- VLCLibraryModel * const model = (VLCLibraryModel *)notification.object;
- NSAssert(model, @"Notification object should be a VLCLibraryModel");
+ VLCLibraryModel * const model = VLCMain.sharedInstance.libraryController.libraryModel;
const vlc_ml_playlist_type_t playlistType = self.dataSource.playlistType;
const size_t numberOfPlaylists = [model numberOfPlaylistsOfType:playlistType];
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3119e69785911887b7f1d509114a92197832f98e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3119e69785911887b7f1d509114a92197832f98e
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