[vlc-commits] [Git][videolan/vlc][master] macosx: Use correct VLCMediaLibraryMediaItem type for media items in playLibraryModeImmediately

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat May 2 11:09:10 UTC 2026



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


Commits:
c3ea98cd by Claudio Cambra at 2026-05-02T12:55:53+02:00
macosx: Use correct VLCMediaLibraryMediaItem type for media items in playLibraryModeImmediately

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

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryRepresentedItem.m
=====================================
@@ -257,7 +257,7 @@
     const NSUInteger startingIndex = itemIndexInParent == NSNotFound ? 0 : itemIndexInParent;
 
     for (NSUInteger i = startingIndex; i < parentItemCount; i++) {
-        const id<VLCMediaLibraryItemProtocol> mediaItem = [parentItems objectAtIndex:i];
+        VLCMediaLibraryMediaItem * const mediaItem = [parentItems objectAtIndex:i];
         [libraryController appendItemToPlayQueue:mediaItem playImmediately:startingPlayImmediately];
 
         if (startingPlayImmediately) {
@@ -267,7 +267,7 @@
 
     if (playQueueController.playbackRepeat != VLC_PLAYLIST_PLAYBACK_REPEAT_NONE) {
         for (NSUInteger i = 0; i < startingIndex; i++) {
-            const id<VLCMediaLibraryItemProtocol> mediaItem = [parentItems objectAtIndex:i];
+            VLCMediaLibraryMediaItem * const mediaItem = [parentItems objectAtIndex:i];
             [libraryController appendItemToPlayQueue:mediaItem playImmediately:NO];
         }
     }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c3ea98cd9abdbaf3516851247f63051a3b19237e
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list