Browse Source

VLCPlaybackController: Fix repeat current media with shuffle mode

Signed-off-by: Carola Nitz <nitz.carola@googlemail.com>
(cherry picked from commit 98b5ee7979b3b1b2364086001576bd2a76578604)
Soomin Lee 7 years ago
parent
commit
a919b618ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/VLCPlaybackController.m

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -788,7 +788,7 @@ VLCMediaDelegate, VLCRemoteControlServiceDelegate>
     NSInteger mediaListCount = _mediaList.count;
 
 #if TARGET_OS_IOS
-    if (mediaListCount > 2 && _shuffleMode) {
+    if (self.repeatMode != VLCRepeatCurrentItem && mediaListCount > 2 && _shuffleMode) {
 
         NSNumber *nextIndex;
         NSUInteger currentIndex = [_mediaList indexOfMedia:_listPlayer.mediaPlayer.media];