[vlc-devel] commit: macosx: We need the PL_LOCK here (May fix a race we have on startup ). (Pierre d'Herbemont )
git version control
git at videolan.org
Mon Sep 15 23:42:04 CEST 2008
vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Mon Sep 15 23:38:25 2008 +0200| [5a4c6cde2f482d0aba7b4a1e92a3e30c87c05478] | committer: Pierre d'Herbemont
macosx: We need the PL_LOCK here (May fix a race we have on startup).
(cherry picked from commit 74a2f7922a262f7a5a6d1323fceecad50c6e97b5)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a4c6cde2f482d0aba7b4a1e92a3e30c87c05478
---
modules/gui/macosx/playlist.m | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index a03cbd1..0b93331 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -171,6 +171,7 @@
NSValue *o_value;
playlist_t * p_playlist = pl_Yield( VLCIntf );
+ PL_LOCK;
if( item == nil )
{
/* root object */
@@ -182,7 +183,8 @@
}
if( p_item && index < p_item->i_children && index >= 0 )
p_return = p_item->pp_children[index];
-
+ PL_UNLOCK;
+
vlc_object_release( p_playlist );
o_value = [o_outline_dict objectForKey:[NSString stringWithFormat: @"%p", p_return]];
More information about the vlc-devel
mailing list