[vlc-devel] commit: OSX: simplification. ( Rémi Duraffort )

git version control git at videolan.org
Tue May 26 10:45:53 CEST 2009


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Tue May 26 00:28:48 2009 +0200| [4e8c2bbfba8175489cd4bfa6ff81f4f0309dd421] | committer: Rémi Duraffort 

OSX: simplification.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e8c2bbfba8175489cd4bfa6ff81f4f0309dd421
---

 modules/gui/macosx/playlistinfo.m |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index 6a2b8ce..a962fd2 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -252,9 +252,7 @@ static VLCInfo *_o_sharedInstance = nil;
         if( !input_item_IsPreparsed( p_item ) )
         {
             playlist_t * p_playlist = pl_Hold( VLCIntf );
-            PL_LOCK;
-            playlist_PreparseEnqueue( p_playlist, p_item, pl_Locked );
-            PL_UNLOCK;
+            playlist_PreparseEnqueue( p_playlist, p_item, pl_Unlocked );
             pl_Release( VLCIntf );
         }
 
@@ -368,7 +366,6 @@ static VLCInfo *_o_sharedInstance = nil;
 - (IBAction)saveMetaData:(id)sender
 {
     playlist_t * p_playlist = pl_Hold( VLCIntf );
-    vlc_value_t val;
 
     if( !p_item ) goto error;
 
@@ -414,8 +411,7 @@ static VLCInfo *_o_sharedInstance = nil;
         module_unneed( p_playlist, p_mod );
     PL_UNLOCK;
 
-    val.b_bool = true;
-    var_Set( p_playlist, "intf-change", val );
+    var_SetBool( p_playlist, "intf-change", true );
     [self updatePanelWithItem: p_item];
 
     pl_Release( VLCIntf );




More information about the vlc-devel mailing list