]> git.sesse.net Git - vlc/commitdiff
playlist: Use PL_LOCK and PL_UNLOCK.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 15:08:18 +0000 (17:08 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sun, 30 Mar 2008 15:08:18 +0000 (17:08 +0200)
src/playlist/thread.c

index 54582e0a1fffba120e14046876dd66c521b95628..0d6919fa7e307bb98f01d1988a17ab2d3a071000 100644 (file)
@@ -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
         {