Commit 0e13b760 authored by Carola Nitz's avatar Carola Nitz

VLCPlaybackController: remove double next call (closes #243)

Next is already called internally this lead to a double next call.
Albums incorrectly started after repeat at index 1
parent a5df68eb
......@@ -748,16 +748,12 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
case VLCMediaPlayerStateStopped: {
[_listPlayer.mediaList lock];
NSUInteger listCount = _listPlayer.mediaList.count;
[_listPlayer.mediaList unlock];
if ([_listPlayer.mediaList indexOfMedia:_mediaPlayer.media] == listCount - 1 && self.repeatMode == VLCDoNotRepeat) {
[_listPlayer.mediaList unlock];
_sessionWillRestart = NO;
[self stopPlayback];
return;
} else if (listCount > 1) {
[_listPlayer.mediaList unlock];
[_listPlayer next];
} else
[_listPlayer.mediaList unlock];
}
} break;
case VLCMediaPlayerStateESAdded: {
#if TARGET_OS_IOS
......
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