소스 검색

VLCMediaThumbnailer: enforce synchronous parsing since we run on a background thread anyway

Felix Paul Kühne 12 년 전
부모
커밋
31e90fdf24
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Sources/VLCMediaThumbnailer.m

+ 1 - 1
Sources/VLCMediaThumbnailer.m

@@ -101,7 +101,7 @@ void unlock(void *opaque, void *picture, void *const *p_pixels)
 
     if (![_media isParsed]) {
         [_media addObserver:self forKeyPath:@"parsed" options:0 context:NULL];
-        [_media parse];
+        [_media synchronousParse];
         NSAssert(!_parsingTimeoutTimer, @"We already have a timer around");
         _parsingTimeoutTimer = [[NSTimer scheduledTimerWithTimeInterval:10 target:self selector:@selector(mediaParsingTimedOut) userInfo:nil repeats:NO] retain];
         return;