[vlc-commits] [Git][videolan/vlc][master] macosx: Fix library crash on video media library media item switch

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Jun 18 06:46:11 UTC 2024



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


Commits:
02c3a9e7 by Claudio Cambra at 2024-06-18T06:31:10+00:00
macosx: Fix library crash on video media library media item switch

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/video-library/VLCLibraryVideoDataSource.m


Changes:

=====================================
modules/gui/macosx/library/video-library/VLCLibraryVideoDataSource.m
=====================================
@@ -251,7 +251,7 @@ NSString * const VLCLibraryVideoDataSourceDisplayedCollectionChangedNotification
 
         const NSInteger section = [self videoGroupToRow:group];
         NSSet<NSIndexPath *> * const indexPathSet = [rowIndexSet indexPathSetWithSection:section];
-        [self.collectionView insertItemsAtIndexPaths:indexPathSet];
+        [self.collectionView reloadItemsAtIndexPaths:indexPathSet];
 
         const NSInteger selectedTableViewVideoGroup = [self rowToVideoGroup:self.groupsTableView.selectedRow];
         if (selectedTableViewVideoGroup == group) {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/02c3a9e7fcc709ca84d993a9192ef0773d9b1e30

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/02c3a9e7fcc709ca84d993a9192ef0773d9b1e30
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