Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
07f3a9cc by Claudio Cambra at 2024-04-07T12:17:06+00:00
macosx: Prevent crash in audio view controller libraryModelUpdated
This selector can handle notifications that do not necessarily carry a
VLCLibraryModel object
Signed-off-by: Claudio Cambra <develo...@claudiocambra.com>
- - - - -
1 changed file:
- modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
Changes:
=====================================
modules/gui/macosx/library/audio-library/VLCLibraryAudioViewController.m
=====================================
@@ -593,9 +593,7 @@ NSString *VLCLibraryPlaceholderAudioViewIdentifier =
@"VLCLibraryPlaceholderAudi
- (void)libraryModelUpdated:(NSNotification *)aNotification
{
- NSParameterAssert(aNotification);
- VLCLibraryModel *model = (VLCLibraryModel *)aNotification.object;
- NSAssert(model, @"Notification object should be a VLCLibraryModel");
+ VLCLibraryModel * const model =
VLCMain.sharedInstance.libraryController.libraryModel;
const NSUInteger audioCount = model.numberOfAudioMedia;
if ((self.libraryWindow.librarySegmentType == VLCLibraryMusicSegment ||
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/07f3a9cc958b9cf19ff1fabd1930ce7aefbf7ded
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/07f3a9cc958b9cf19ff1fabd1930ce7aefbf7ded
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits