]> git.sesse.net Git - vlc/commitdiff
macosx: added missing pl locks
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 10 Jan 2009 15:06:27 +0000 (16:06 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 10 Jan 2009 15:10:41 +0000 (16:10 +0100)
modules/gui/macosx/playlist.m

index e47cd30102ad44c41ec86643c77655bb0f6e34df..4d5e8f930a3daed88fe734ce903754f6c33ed08f 100644 (file)
 
     playlist_t *p_playlist = pl_Hold( VLCIntf );
 
+    PL_LOCK;
     if( playlist_CurrentSize( p_playlist ) >= 2 )
     {
         [o_status_field setStringValue: [NSString stringWithFormat:
         else
             [o_status_field setStringValue: _NS("1 item")];
     }
+    PL_UNLOCK;
     vlc_object_release( p_playlist );
 
     [self outlineViewSelectionDidChange: nil];
     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:
             [o_status_field setStringValue: _NS("1 item")];
         }
     }
+    PL_UNLOCK;
+
     vlc_object_release( p_playlist );
 
     [o_outline_dict setObject:o_value forKey:[NSString stringWithFormat:@"%p",