浏览代码

MacOSX/Framework/VLCMediaListAspect.m: Use the cachedMedia array when giving back the aspect items. That really boost performances by the way.

Pierre d'Herbemont 17 年之前
父节点
当前提交
18d766fe6d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Sources/VLCMediaListAspect.m

+ 2 - 2
Sources/VLCMediaListAspect.m

@@ -42,11 +42,11 @@
 /* For the @"media" key */
 - (int) countOfMedia
 {
-    return [self count];
+    return [cachedMedia count];
 }
 - (id) objectInMediaAtIndex:(int)i
 {
-    return [self mediaAtIndex:i];
+    return [cachedMedia objectAtIndex:i];
 }
 @end