[vlc-devel] commit: macosx/framework: Take the extension mgr lock when enumerating. ( Pierre d'Herbemont )
git version control
git at videolan.org
Fri Jan 29 14:41:16 CET 2010
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Jan 29 14:11:32 2010 +0100| [6dcfe3c4efa4cb7623bcc3e484cbdd371b41f01a] | committer: Pierre d'Herbemont
macosx/framework: Take the extension mgr lock when enumerating.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6dcfe3c4efa4cb7623bcc3e484cbdd371b41f01a
---
.../framework/Sources/VLCExtensionsManager.m | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/projects/macosx/framework/Sources/VLCExtensionsManager.m b/projects/macosx/framework/Sources/VLCExtensionsManager.m
index fe57fb7..7f3fd4b 100644
--- a/projects/macosx/framework/Sources/VLCExtensionsManager.m
+++ b/projects/macosx/framework/Sources/VLCExtensionsManager.m
@@ -64,11 +64,13 @@ static VLCExtensionsManager *sharedManager = nil;
return _extensions;
_extensions = [[NSMutableArray alloc] init];
extension_t *ext;
+ vlc_mutex_lock(&_instance->lock);
FOREACH_ARRAY(ext, _instance->extensions)
VLCExtension *extension = [[VLCExtension alloc] initWithInstance:ext];
[_extensions addObject:extension];
[extension release];
FOREACH_END()
+ vlc_mutex_unlock(&_instance->lock);
return _extensions;
}
More information about the vlc-devel
mailing list