]> git.sesse.net Git - vlc/blobdiff - src/playlist/control.c
playlist: Use PL_LOCK_IF and PL_UNLOCK_IF to perform some more checks on lock state...
[vlc] / src / playlist / control.c
index fbbf9412e8ad450066807060f6b120338057a2cb..2cb00e99cc6d9d8cf3a04afa95d303574198f4de 100644 (file)
@@ -65,10 +65,10 @@ int playlist_Control( playlist_t * p_playlist, int i_query,
     va_list args;
     int i_result;
     va_start( args, b_locked );
-    if( !b_locked ) PL_LOCK;
+    PL_LOCK_IF( !b_locked );
     i_result = PlaylistVAControl( p_playlist, i_query, args );
     va_end( args );
-    if( !b_locked ) PL_UNLOCK;
+    PL_UNLOCK_IF( !b_locked );
 
     return i_result;
 }