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

Re-write 'Play all' selector so it works with listing which were not discovered by libvlc

parent 5a2403c7
......@@ -125,14 +125,13 @@
- (void)playAllAction:(id)sender
{
VLCMediaList *fullMediaList = self.serverBrowser.mediaList;
NSInteger count = fullMediaList.count;
NSArray *items = self.serverBrowser.items;
NSInteger count = items.count;
NSMutableArray *fileList = [[NSMutableArray alloc] init];
for (NSInteger x = count - 1; x > -1; x--) {
VLCMedia *media = [fullMediaList mediaAtIndex:x];
VLCMediaType mediaType = media.mediaType;
if (mediaType == VLCMediaTypeFile || mediaType == VLCMediaTypeStream || mediaType == VLCMediaTypeUnknown) {
[fileList addObject:media];
id<VLCNetworkServerBrowserItem> iter = items[x];
if (![iter isContainer]) {
[fileList addObject:[iter media]];
}
}
......
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