Commit 9d66a8b8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont
Browse files

MacOSX/Framework/VLCMediaListAspect.m: Use the cachedMedia array when giving...

MacOSX/Framework/VLCMediaListAspect.m: Use the cachedMedia array when giving back the aspect items. That really boost performances by the way.
parent 1c45e0b2
...@@ -42,11 +42,11 @@ ...@@ -42,11 +42,11 @@
/* For the @"media" key */ /* For the @"media" key */
- (int) countOfMedia - (int) countOfMedia
{ {
return [self count]; return [cachedMedia count];
} }
- (id) objectInMediaAtIndex:(int)i - (id) objectInMediaAtIndex:(int)i
{ {
return [self mediaAtIndex:i]; return [cachedMedia objectAtIndex:i];
} }
@end @end
......
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