[vlc-devel] commit: macosx: more approbiate locking suggested by fenrir ( Felix Paul Kühne )

git version control git at videolan.org
Thu Feb 19 16:10:20 CET 2009


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Feb 19 16:10:17 2009 +0100| [12dd5ea5617f78ad80764d9aef2fffd870a318cb] | committer: Felix Paul Kühne 

macosx: more approbiate locking suggested by fenrir

and fixed a small typo

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

 modules/gui/macosx/intf.m     |    2 +-
 modules/gui/macosx/playlist.m |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7d3fc06..01bdef0 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -324,7 +324,7 @@ static VLCMain *_o_sharedMainInstance = nil;
         NSAlert *ourAlert;
         int i_returnValue;
         NSString *o_blabla;
-        if( MACOS_VERSION == 10.5f )
+        if( MACOS_VERSION == 10.4f )
             o_blabla = _NS("VLC's last release for your OS is the 0.9 series." );
         else if( MACOS_VERSION == 10.3f )
             o_blabla = _NS("VLC's last release for your OS is VLC 0.8.6i, which is prone to known security issues." );
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 334edfe..393fabe 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -575,9 +575,9 @@
 
     PL_LOCK;
     p_item = playlist_CurrentPlayingItem( p_playlist );
-    PL_UNLOCK;
     if( p_item == NULL )
     {
+        PL_UNLOCK;
         pl_Release( VLCIntf );
         return;
     }
@@ -601,6 +601,7 @@
 
     }
 
+    PL_UNLOCK;
     pl_Release( VLCIntf );
 }
 




More information about the vlc-devel mailing list