Commit e247ead5 authored by Felix Paul Kühne's avatar Felix Paul Kühne

Fix off-by-one

(cherry picked from commit 06c43ffe)
parent 16363830
......@@ -126,9 +126,9 @@
- (void)playAllAction:(id)sender
{
VLCMediaList *fullMediaList = self.serverBrowser.mediaList;
NSUInteger count = fullMediaList.count;
NSInteger count = fullMediaList.count;
NSMutableArray *fileList = [[NSMutableArray alloc] init];
for (NSUInteger x = count - 1; x > 0; x--) {
for (NSInteger x = count - 1; x > -1; x--) {
VLCMedia *media = [fullMediaList mediaAtIndex:x];
VLCMediaType mediaType = media.mediaType;
if (mediaType == VLCMediaTypeFile || mediaType == VLCMediaTypeStream || mediaType == VLCMediaTypeUnknown) {
......
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