Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
cea7e52b by Claudio Cambra at 2024-02-11T07:53:42+00:00
macosx: Fix playback of audio carousel items when library playback mode is 
enabled

Signed-off-by: Claudio Cambra <[email protected]>

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryRepresentedItem.m
=====================================
@@ -240,6 +240,12 @@
 
     NSArray<VLCMediaLibraryMediaItem *> * const parentItems = 
self.parentMediaArray;
     const NSUInteger parentItemCount = parentItems.count;
+
+    if (parentItemCount == 0) {
+        [self playIndividualModeImmediately:playImmediately];
+        return;
+    }
+
     const NSUInteger itemIndexInParent = self.itemIndexInParent;
     const NSUInteger startingIndex = itemIndexInParent == NSNotFound ? 0 : 
itemIndexInParent;
 



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

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


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

Reply via email to