• Marvin Scholz's avatar
    macosx: fix off-by-one in reload logic · 07283e6a
    Marvin Scholz authored
    When checking for the number of sections in reloadDataForNotification
    an index is compared to a count, so the count must always be larger
    than the index, else the index points past the last available item
    leading to an assertion like this:
      *** Assertion failure in -[_NSCollectionViewCore
      animator:], …/UIFoundation/CollectionView/UICollectionView.m:7095
      *** Terminating app due to uncaught exception
      'NSInternalInconsistencyException', reason: 'attempt to delete section
      1, but there are only 1 sections before the update'
VLCMediaSourceBaseDataSource.m 14.9 KB