Explorar o código

move updateDisplayMetadata call out of mainqueue to avoid unresponsive UI

Carola Nitz %!s(int64=8) %!d(string=hai) anos
pai
achega
12d0a02ff2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Sources/VLCPlaybackController.m

+ 1 - 1
Sources/VLCPlaybackController.m

@@ -933,7 +933,7 @@ VLCMediaDelegate>
 {
     if (_needsMetadataUpdate == NO) {
         _needsMetadataUpdate = YES;
-        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), DISPATCH_QUEUE_PRIORITY_DEFAULT, ^{
             [self _updateDisplayedMetadata];
         });
     }