瀏覽代碼

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

Felix Paul Kühne 11 年之前
父節點
當前提交
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;