Commit 4311169c authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

fix repeat one / repeat list

parent 33808067
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* UPnP reliability improvements, notably with Kodi * UPnP reliability improvements, notably with Kodi
* Stability improvements * Stability improvements
* Fixed issues unlocking the app when a passcode was never set * Fixed issues unlocking the app when a passcode was never set
* Fixed repeat one / repeat list
2.7.0: 2.7.0:
------ ------
......
...@@ -621,7 +621,7 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont ...@@ -621,7 +621,7 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
} else if (currentState == VLCMediaPlayerStateEnded || currentState == VLCMediaPlayerStateStopped) { } else if (currentState == VLCMediaPlayerStateEnded || currentState == VLCMediaPlayerStateStopped) {
[_listPlayer.mediaList lock]; [_listPlayer.mediaList lock];
NSUInteger listCount = _listPlayer.mediaList.count; NSUInteger listCount = _listPlayer.mediaList.count;
if ([_listPlayer.mediaList indexOfMedia:_mediaPlayer.media] == listCount - 1) { if ([_listPlayer.mediaList indexOfMedia:_mediaPlayer.media] == listCount - 1 && self.repeatMode == VLCDoNotRepeat) {
[_listPlayer.mediaList unlock]; [_listPlayer.mediaList unlock];
self.sessionWillRestart = NO; self.sessionWillRestart = NO;
[self stopPlayback]; [self stopPlayback];
...@@ -629,7 +629,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont ...@@ -629,7 +629,8 @@ NSString *const VLCPlaybackControllerPlaybackPositionUpdated = @"VLCPlaybackCont
} else if (listCount > 1) { } else if (listCount > 1) {
[_listPlayer.mediaList unlock]; [_listPlayer.mediaList unlock];
[_listPlayer next]; [_listPlayer next];
} } else
[_listPlayer.mediaList unlock];
} }
if ([self.delegate respondsToSelector:@selector(mediaPlayerStateChanged:isPlaying:currentMediaHasTrackToChooseFrom:currentMediaHasChapters:forPlaybackController:)]) if ([self.delegate respondsToSelector:@selector(mediaPlayerStateChanged:isPlaying:currentMediaHasTrackToChooseFrom:currentMediaHasChapters:forPlaybackController:)])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment