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 <[email protected]>

- - - - -


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.


_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to