Commit a5df68eb authored by Carola Nitz's avatar Carola Nitz

VLCPlaybackController: Simplify repeat code

parent d2bc297f
......@@ -592,19 +592,11 @@ typedef NS_ENUM(NSUInteger, VLCAspectRatio) {
- (void)toggleRepeatMode
{
VLCRepeatMode nextRepeatMode = VLCDoNotRepeat;
switch (_listPlayer.repeatMode) {
case VLCDoNotRepeat:
nextRepeatMode = VLCRepeatCurrentItem;
break;
case VLCRepeatCurrentItem:
nextRepeatMode = VLCRepeatAllItems;
break;
default:
nextRepeatMode = VLCDoNotRepeat;
break;
if (_listPlayer.repeatMode == VLCRepeatAllItems) {
_listPlayer.repeatMode = VLCDoNotRepeat;
} else {
_listPlayer.repeatMode += 1;
}
_listPlayer.repeatMode = nextRepeatMode;
}
- (NSInteger)indexOfCurrentAudioTrack
......
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