Commit 6dcfe3c4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx/framework: Take the extension mgr lock when enumerating.

parent 3dd2478c
...@@ -64,11 +64,13 @@ static VLCExtensionsManager *sharedManager = nil; ...@@ -64,11 +64,13 @@ static VLCExtensionsManager *sharedManager = nil;
return _extensions; return _extensions;
_extensions = [[NSMutableArray alloc] init]; _extensions = [[NSMutableArray alloc] init];
extension_t *ext; extension_t *ext;
vlc_mutex_lock(&_instance->lock);
FOREACH_ARRAY(ext, _instance->extensions) FOREACH_ARRAY(ext, _instance->extensions)
VLCExtension *extension = [[VLCExtension alloc] initWithInstance:ext]; VLCExtension *extension = [[VLCExtension alloc] initWithInstance:ext];
[_extensions addObject:extension]; [_extensions addObject:extension];
[extension release]; [extension release];
FOREACH_END() FOREACH_END()
vlc_mutex_unlock(&_instance->lock);
return _extensions; return _extensions;
} }
......
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