[vlc-commits] [Git][videolan/vlc][master] macosx: Avoid clearing fresh titles in title cache

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Fri Oct 9 12:09:43 UTC 2026



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


Commits:
8782d43c by Claudio Cambra at 2026-10-09T13:48:17+02:00
macosx: Avoid clearing fresh titles in title cache

Individual setters already repopulate the cache and remove stale entries. Clearing the cache after these just serves to remove fresh entries

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryModel.m
=====================================
@@ -1565,9 +1565,6 @@ static void libraryCallback(void *p_data, const vlc_ml_event_t *p_event)
     }
 
     dispatch_group_notify(cacheDropGroup, _mediaTitlesCacheModificationQueue, ^{
-        // Source setters have now submitted their title updates. Queue the final
-        // clear after those updates so none can restore the dropped title cache.
-        self.cachedMediaTitles = nil;
         [self performAfterCacheWritesOnQueue:self->_mediaTitlesCacheModificationQueue block:^{
             [self.changeDelegate notifyChange:VLCLibraryModelAllCachesDropped withObject:self];
         }];



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8782d43c1f17de497f3b25c690be5ba0ded35d98

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