[vlc-devel] commit: playlist: Use PL_LOCK and PL_UNLOCK. (Pierre d'Herbemont )

git version control git at videolan.org
Sun Mar 30 17:08:09 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Sun Mar 30 17:08:18 2008 +0200| [ef81e665be4bf3a169443a8af0cce89af39ce4de]

playlist: Use PL_LOCK and PL_UNLOCK.

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

 src/playlist/thread.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index 54582e0..0d6919f 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -151,16 +151,16 @@ static void RunControlThread ( playlist_t *p_playlist )
     vlc_object_lock( p_playlist );
     while( vlc_object_alive( p_playlist ) )
     {
-        vlc_object_unlock( p_playlist );
+        PL_UNLOCK;
         playlist_MainLoop( p_playlist );
-        vlc_object_lock( p_playlist );
+        PL_LOCK;
 
         if( p_playlist->b_cant_sleep )
         {
             /* 100 ms is an acceptable delay for playlist operations */
-            vlc_object_unlock( p_playlist );
+            PL_UNLOCK;
             msleep( INTF_IDLE_SLEEP*2 );
-            vlc_object_lock( p_playlist );
+            PL_LOCK;
         }
         else
         {




More information about the vlc-devel mailing list