Commit 44f32f2a authored by Carola's avatar Carola
Browse files

VLCNetworkServerBrowserFTP: fix order in medialist

parent 94856d02
...@@ -80,9 +80,8 @@ ...@@ -80,9 +80,8 @@
{ {
VLCMediaList *mediaList = [[VLCMediaList alloc] init]; VLCMediaList *mediaList = [[VLCMediaList alloc] init];
@synchronized(_items) { @synchronized(_items) {
NSUInteger count = _items.count; for (id<VLCNetworkServerBrowserItem> browseritem in _items) {
for (NSInteger i = count - 1; i >= 0; i--) { VLCMedia *media = [browseritem media];
VLCMedia *media = [_items[i] media];
if (media) if (media)
[mediaList addMedia:media]; [mediaList addMedia:media];
} }
......
Supports Markdown
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