ソースを参照

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