[vlc-commits] [Git][videolan/vlc][master] macosx: Drop outdated media items cache after modification of VLCMediaLibraryPlaylist contents

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Sep 7 09:38:05 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
3f2e4b2f by Claudio Cambra at 2026-09-07T08:59:41+00:00
macosx: Drop outdated media items cache after modification of VLCMediaLibraryPlaylist contents

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
=====================================
@@ -1172,6 +1172,9 @@ static NSString *genreArrayDisplayString(NSArray<VLCMediaLibraryGenre *> * const
                     (unsigned long)range.length, (unsigned long)range.location, self.libraryID);
         }
     }
+
+    // Drop the cached media list so the next -mediaItems access re-fetches.
+    _mediaItems = nil;
 }
 
 - (void)revealInFinder



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3f2e4b2f8a855daf8c2a38fe5beb469dcfa5ad2d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3f2e4b2f8a855daf8c2a38fe5beb469dcfa5ad2d
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