Browse Source

VLCMediaList: Set QoS of _serialMediaObjectsQueue to user initiated

Soomin Lee 6 years ago
parent
commit
d81035778d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Sources/VLCMediaList.m

+ 6 - 1
Sources/VLCMediaList.m

@@ -93,7 +93,12 @@ static void HandleMediaListItemDeleted( const libvlc_event_t * event, void * use
 
 
         // Initialize internals to defaults
         // Initialize internals to defaults
         _mediaObjects = [[NSMutableArray alloc] init];
         _mediaObjects = [[NSMutableArray alloc] init];
-        _serialMediaObjectsQueue = dispatch_queue_create("org.videolan.serialMediaObjectsQueue",  DISPATCH_QUEUE_SERIAL);
+
+        dispatch_queue_attr_t qosAttribute = dispatch_queue_attr_make_with_qos_class(DISPATCH_QUEUE_SERIAL,
+                                                                                     QOS_CLASS_USER_INITIATED,
+                                                                                     0);
+
+        _serialMediaObjectsQueue = dispatch_queue_create("org.videolan.serialMediaObjectsQueue", qosAttribute);
         [self initInternalMediaList];
         [self initInternalMediaList];
     }
     }