Commit a7d189ab authored by Carola Nitz's avatar Carola Nitz

VLCMediaPlayer and VLCMediaListPlayer: use DISPATCH_QUEUE_SERIAL instead of...

VLCMediaPlayer and VLCMediaListPlayer: use DISPATCH_QUEUE_SERIAL instead of DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL to support < iOS10
parent b154485c
......@@ -93,7 +93,7 @@ NSString *const VLCMediaDiscovererCategory = @"VLCMediaDiscovererCategory";
if (self = [super init]) {
_localizedName = nil;
_discoveredMedia = nil;
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL);
if (libraryInstance != nil) {
_privateLibrary = libraryInstance;
......
......@@ -46,7 +46,7 @@
- (instancetype)initWithOptions:(NSArray *)options andDrawable:(id)drawable
{
if (self = [super init]) {
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL);
VLCLibrary *library;
if (options != nil) {
......
......@@ -1373,7 +1373,7 @@ static void HandleMediaPlayerSnapshot(const libvlc_event_t * event, void * self)
- (dispatch_queue_t)libVLCBackgroundQueue
{
if (!_libVLCBackgroundQueue) {
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL_WITH_AUTORELEASE_POOL);
_libVLCBackgroundQueue = dispatch_queue_create("libvlcQueue", DISPATCH_QUEUE_SERIAL);
}
return _libVLCBackgroundQueue;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment