[vlc-commits] [Git][videolan/vlc][master] macosx: Don't send nil as notification object for...

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Feb 18 01:04:32 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
bdb18949 by Claudio Cambra at 2023-02-18T00:49:40+00:00
macosx: Don't send nil as notification object for VLCLibraryModelVideoMediaListUpdated and VLCLibraryModelAudioMediaListUpdated in VLCLibraryModel's dropCaches

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
=====================================
@@ -513,8 +513,8 @@ static void libraryCallback(void *p_data, const vlc_ml_event_t *p_event)
     _cachedArtists = nil;
     _cachedAudioMedia = nil;
 
-    [_defaultNotificationCenter postNotificationName:VLCLibraryModelVideoMediaListUpdated object:nil];
-    [_defaultNotificationCenter postNotificationName:VLCLibraryModelAudioMediaListUpdated object:nil];
+    [_defaultNotificationCenter postNotificationName:VLCLibraryModelVideoMediaListUpdated object:self];
+    [_defaultNotificationCenter postNotificationName:VLCLibraryModelAudioMediaListUpdated object:self];
 }
 
 @end



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

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