[vlc-devel] commit: macosx: added missing pl locks ( Felix Paul Kühne )
git version control
git at videolan.org
Sat Jan 10 16:10:43 CET 2009
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan 10 16:06:27 2009 +0100| [688d48fe32ff697fe76ca80286ab0927a7d8c142] | committer: Felix Paul Kühne
macosx: added missing pl locks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=688d48fe32ff697fe76ca80286ab0927a7d8c142
---
modules/gui/macosx/playlist.m | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index e47cd30..4d5e8f9 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -482,6 +482,7 @@
playlist_t *p_playlist = pl_Hold( VLCIntf );
+ PL_LOCK;
if( playlist_CurrentSize( p_playlist ) >= 2 )
{
[o_status_field setStringValue: [NSString stringWithFormat:
@@ -495,6 +496,7 @@
else
[o_status_field setStringValue: _NS("1 item")];
}
+ PL_UNLOCK;
vlc_object_release( p_playlist );
[self outlineViewSelectionDidChange: nil];
@@ -1473,6 +1475,7 @@
id o_value = [super outlineView: outlineView child: index ofItem: item];
playlist_t *p_playlist = pl_Hold( VLCIntf );
+ PL_LOCK;
if( playlist_CurrentSize( p_playlist ) >= 2 )
{
[o_status_field setStringValue: [NSString stringWithFormat:
@@ -1490,6 +1493,8 @@
[o_status_field setStringValue: _NS("1 item")];
}
}
+ PL_UNLOCK;
+
vlc_object_release( p_playlist );
[o_outline_dict setObject:o_value forKey:[NSString stringWithFormat:@"%p",
More information about the vlc-devel
mailing list