]> git.sesse.net Git - vlc/commitdiff
src/playlist/thread.c: Use the macro to lock/unlock the playlist as in the rest of...
authorJulien 'Lta' BALLET <contact@lta.io>
Wed, 14 May 2014 16:24:43 +0000 (18:24 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Wed, 14 May 2014 16:46:23 +0000 (18:46 +0200)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
src/playlist/thread.c

index ed1b80866b063df9e473c5955c993ea2b8b33ebb..81629d6f2414d0210e6a2f09188837e8197db0a6 100644 (file)
@@ -525,7 +525,7 @@ static void *Thread ( void *data )
     playlist_t *p_playlist = data;
     playlist_private_t *p_sys = pl_priv(p_playlist);
 
-    playlist_Lock( p_playlist );
+    PL_LOCK;
     for( ;; )
     {
         while( p_sys->p_input != NULL )
@@ -550,7 +550,7 @@ static void *Thread ( void *data )
         LoopRequest( p_playlist, status );
     }
     p_sys->status.i_status = PLAYLIST_STOPPED;
-    playlist_Unlock( p_playlist );
+    PL_UNLOCK;
 
     input_resource_Terminate( p_sys->p_input_resource );
     return NULL;