소스 검색

Media: only sync parse if really needed

(cherry picked from commit 170b9c7a622cfe861f005d3c378bb28ad9755711)
Felix Paul Kühne 9 년 전
부모
커밋
c721ebfa32
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Sources/VLCMedia.m

+ 2 - 1
Sources/VLCMedia.m

@@ -597,7 +597,8 @@ NSString *const VLCMediaTracksInformationTextEncoding = @"encoding"; // NSString
 
 - (NSArray *)tracksInformation
 {
-    [self synchronousParse];
+    if (!self.isParsed)
+        [self synchronousParse];
 
     libvlc_media_track_t **tracksInfo;
     unsigned int count = libvlc_media_tracks_get(p_md, &tracksInfo);