[vlc-commits] [Git][videolan/vlc][master] macosx: Prevent double-removal of playlist item at target position

Steve Lhomme (@robUx4) gitlab at videolan.org
Wed Sep 9 09:35:13 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
81f57815 by Claudio Cambra at 2026-09-09T09:22:23+00:00
macosx: Prevent double-removal of playlist item at target position

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

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryDataTypes.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryDataTypes.m
=====================================
@@ -1150,6 +1150,9 @@ static NSString *genreArrayDisplayString(NSArray<VLCMediaLibraryGenre *> * const
     NSUInteger rangeLen = 1;
     for (NSUInteger i = 1; i < sorted.count; i++) {
         const NSUInteger pos = sorted[i].unsignedIntegerValue;
+        if (pos == rangeStart + rangeLen - 1) {
+            continue;
+        }
         if (pos == rangeStart + rangeLen) {
             rangeLen++;
             continue;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/81f57815be8a49a8ffbf26b63f7999832f7acd33

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/81f57815be8a49a8ffbf26b63f7999832f7acd33
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list